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.

12 lines
303 B

  1. # Copyright 2019 Camptocamp SA
  2. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
  3. from odoo import fields, models
  4. class AccountMove(models.Model):
  5. _inherit = "account.move"
  6. company_group_id = fields.Many2one(
  7. related="partner_id.company_group_id", store=True
  8. )