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.

17 lines
446 B

  1. # Copyright 2019 Camptocamp SA
  2. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
  3. from odoo import models, fields
  4. class Contact(models.Model):
  5. _inherit = 'res.partner'
  6. company_group_id = fields.Many2one(
  7. 'res.partner',
  8. 'Company group',
  9. domain=[('is_company', '=', True)]
  10. )
  11. def _commercial_fields(self):
  12. return super(Contact, self)._commercial_fields() + ['company_group_id']