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.

13 lines
317 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 AccountInvoice(models.Model):
  5. _inherit = 'account.invoice'
  6. company_group_id = fields.Many2one(
  7. related='partner_id.company_group_id',
  8. store=True
  9. )