Browse Source

Turnover items has no parent

pull/224/head
Antonio Espinosa 10 years ago
committed by Jairo Llopis
parent
commit
d487f3c847
  1. 8
      crm_capital/models/crm_turnover_range.py
  2. 1
      crm_capital/views/crm_turnover_range_view.xml

8
crm_capital/models/crm_turnover_range.py

@ -7,14 +7,6 @@ from openerp import models, fields
class CrmTurnoverRange(models.Model): class CrmTurnoverRange(models.Model):
_name = 'crm.turnover_range' _name = 'crm.turnover_range'
_order = "parent_left"
_parent_order = "name"
_parent_store = True
_description = "Turnover range" _description = "Turnover range"
name = fields.Char(required=True, translate=True) 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)

1
crm_capital/views/crm_turnover_range_view.xml

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

Loading…
Cancel
Save