mirror of
https://github.com/OCA/intrastat-extrastat.git
synced 2025-02-16 17:13:41 +02:00
[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:
committed by
Víctor Martínez
parent
4d3286c0b4
commit
9e9c965fe1
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user