From d487f3c8471873dedfbd70e1a09bca6fe9b5f8dc Mon Sep 17 00:00:00 2001 From: Antonio Espinosa Date: Mon, 30 Mar 2015 17:29:52 +0200 Subject: [PATCH] Turnover items has no parent --- crm_capital/models/crm_turnover_range.py | 8 -------- crm_capital/views/crm_turnover_range_view.xml | 1 - 2 files changed, 9 deletions(-) diff --git a/crm_capital/models/crm_turnover_range.py b/crm_capital/models/crm_turnover_range.py index 5df06607b..b6784462e 100644 --- a/crm_capital/models/crm_turnover_range.py +++ b/crm_capital/models/crm_turnover_range.py @@ -7,14 +7,6 @@ from openerp import models, fields class CrmTurnoverRange(models.Model): _name = 'crm.turnover_range' - _order = "parent_left" - _parent_order = "name" - _parent_store = True _description = "Turnover range" name = fields.Char(required=True, translate=True) - parent_id = fields.Many2one(comodel_name='crm.turnover_range') - children = fields.One2many(comodel_name='crm.turnover_range', - inverse_name='parent_id') - parent_left = fields.Integer('Parent Left', select=True) - parent_right = fields.Integer('Parent Right', select=True) diff --git a/crm_capital/views/crm_turnover_range_view.xml b/crm_capital/views/crm_turnover_range_view.xml index 329aff280..fbc3f87c9 100644 --- a/crm_capital/views/crm_turnover_range_view.xml +++ b/crm_capital/views/crm_turnover_range_view.xml @@ -15,7 +15,6 @@ -