You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

20 lines
855 B

# -*- encoding: utf-8 -*-
##############################################################################
# For copyright and license notices, see __openerp__.py file in root directory
##############################################################################
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)