|
|
@ -15,7 +15,8 @@ class ResPartnerSector(models.Model): |
|
|
|
_description = "Sector" |
|
|
|
|
|
|
|
name = fields.Char(required=True, translate=True) |
|
|
|
parent_id = fields.Many2one(comodel_name='res.partner.sector', |
|
|
|
parent_id = fields.Many2one(string='Parent', |
|
|
|
comodel_name='res.partner.sector', |
|
|
|
ondelete='restrict') |
|
|
|
child_ids = fields.One2many(comodel_name='res.partner.sector', |
|
|
|
inverse_name='parent_id', |
|
|
|