Browse Source

Employees range items has no parent

pull/225/head
Antonio Espinosa 10 years ago
committed by Jairo Llopis
parent
commit
89f64b9006
  1. 8
      crm_employees/models/crm_employees_range.py
  2. 1
      crm_employees/views/crm_employees_range_view.xml

8
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)

1
crm_employees/views/crm_employees_range_view.xml

@ -15,7 +15,6 @@
<field name="arch" type="xml">
<tree string="Employees ranges" editable="bottom">
<field name="name"/>
<field name="parent_id"/>
</tree>
</field>
</record>

Loading…
Cancel
Save