From 89f64b90063e3922a3d215b771922de85accb0f5 Mon Sep 17 00:00:00 2001 From: Antonio Espinosa Date: Mon, 30 Mar 2015 17:30:12 +0200 Subject: [PATCH] Employees range items has no parent --- crm_employees/models/crm_employees_range.py | 8 -------- crm_employees/views/crm_employees_range_view.xml | 1 - 2 files changed, 9 deletions(-) diff --git a/crm_employees/models/crm_employees_range.py b/crm_employees/models/crm_employees_range.py index d8912f0b5..0703e83b0 100644 --- a/crm_employees/models/crm_employees_range.py +++ b/crm_employees/models/crm_employees_range.py @@ -7,14 +7,6 @@ from openerp import models, fields class CrmEmployeesRange(models.Model): _name = 'crm.employees_range' - _order = "parent_left" - _parent_order = "name" - _parent_store = True _description = "Employees range" name = fields.Char(required=True, translate=True) - parent_id = fields.Many2one(comodel_name='crm.employees_range') - children = fields.One2many(comodel_name='crm.employees_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_employees/views/crm_employees_range_view.xml b/crm_employees/views/crm_employees_range_view.xml index 87fda272b..efe3d1671 100644 --- a/crm_employees/views/crm_employees_range_view.xml +++ b/crm_employees/views/crm_employees_range_view.xml @@ -15,7 +15,6 @@ -