[FIX] intrastat_product: don't force wrong domain in moves

The intrastat transaction domain is already forced in the model and in the field in account.move.
It was being incorrectly forced in the move, where it needed to be associated to the same company as the record, but those types can have no company associated

TT29582

intrastat_product 14.0.1.1.0
This commit is contained in:
João Marques
2021-05-10 09:15:10 +01:00
committed by Víctor Martínez
parent 4d3286c0b4
commit 9e9c965fe1
3 changed files with 3 additions and 5 deletions

View File

@@ -7,7 +7,7 @@
{
"name": "Intrastat Product",
"version": "14.0.1.0.1",
"version": "14.0.1.1.0",
"category": "Intrastat",
"license": "AGPL-3",
"summary": "Base module for Intrastat Product",

View File

@@ -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",

View File

@@ -9,10 +9,7 @@
expr="//page[@name='other_info']//field[@name='invoice_incoterm_id']"
position="after"
>
<field
name="intrastat_transaction_id"
domain="[('company_id', '=', company_id)]"
/>
<field name="intrastat_transaction_id" />
<field name="intrastat" invisible="1" />
<field
name="intrastat_transport_id"