From 99bcb567afb904b01d86371e9ae01a4cd17e59af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Mart=C3=ADnez?= Date: Thu, 9 Nov 2023 09:17:30 +0100 Subject: [PATCH] [FIX] intrastat_product: Prevent error when adding transaction details on invoices The exclude_from_invoice_tab field does not exist in v16 --- intrastat_product/models/account_move.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/intrastat_product/models/account_move.py b/intrastat_product/models/account_move.py index 5ae9235..abfc0c3 100644 --- a/intrastat_product/models/account_move.py +++ b/intrastat_product/models/account_move.py @@ -202,8 +202,7 @@ class AccountMoveIntrastatLine(models.Model): def _onchange_move_id(self): moves = self.mapped("move_id") dom = [ - ("exclude_from_invoice_tab", "=", False), - ("display_type", "=", False), + ("display_type", "=", "product"), ("id", "in", moves.mapped("invoice_line_ids").ids), ("id", "not in", moves.mapped("intrastat_line_ids.invoice_line_id").ids), ]