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
This commit is contained in:
@@ -16,6 +16,7 @@ class AccountMove(models.Model):
|
|||||||
tracking=True,
|
tracking=True,
|
||||||
check_company=True,
|
check_company=True,
|
||||||
help="Intrastat nature of transaction",
|
help="Intrastat nature of transaction",
|
||||||
|
domain="['|', ('company_id', '=', False), ('company_id', '=', company_id)]",
|
||||||
)
|
)
|
||||||
intrastat_transport_id = fields.Many2one(
|
intrastat_transport_id = fields.Many2one(
|
||||||
comodel_name="intrastat.transport_mode",
|
comodel_name="intrastat.transport_mode",
|
||||||
|
|||||||
@@ -9,10 +9,7 @@
|
|||||||
expr="//page[@name='other_info']//field[@name='invoice_incoterm_id']"
|
expr="//page[@name='other_info']//field[@name='invoice_incoterm_id']"
|
||||||
position="after"
|
position="after"
|
||||||
>
|
>
|
||||||
<field
|
<field name="intrastat_transaction_id" />
|
||||||
name="intrastat_transaction_id"
|
|
||||||
domain="[('company_id', '=', company_id)]"
|
|
||||||
/>
|
|
||||||
<field name="intrastat" invisible="1" />
|
<field name="intrastat" invisible="1" />
|
||||||
<field
|
<field
|
||||||
name="intrastat_transport_id"
|
name="intrastat_transport_id"
|
||||||
|
|||||||
Reference in New Issue
Block a user