diff --git a/intrastat_product/models/account_move.py b/intrastat_product/models/account_move.py index 90f2d0c..564f1e9 100644 --- a/intrastat_product/models/account_move.py +++ b/intrastat_product/models/account_move.py @@ -16,6 +16,7 @@ class AccountMove(models.Model): tracking=True, check_company=True, help="Intrastat nature of transaction", + domain="['|', ('company_id', '=', False), ('company_id', '=', company_id)]", ) intrastat_transport_id = fields.Many2one( comodel_name="intrastat.transport_mode", diff --git a/intrastat_product/views/account_move.xml b/intrastat_product/views/account_move.xml index 3747728..6d0ad07 100644 --- a/intrastat_product/views/account_move.xml +++ b/intrastat_product/views/account_move.xml @@ -9,10 +9,7 @@ expr="//page[@name='other_info']//field[@name='invoice_incoterm_id']" position="after" > - +