diff --git a/intrastat_product/models/account_move.py b/intrastat_product/models/account_move.py index c23252060..5ae92356f 100644 --- a/intrastat_product/models/account_move.py +++ b/intrastat_product/models/account_move.py @@ -79,11 +79,8 @@ def compute_intrastat_lines(self): def _get_intrastat_line_vals(self, line): vals = {} - notedict = { - "note": "", - "line_nbr": 0, - } decl_model = self.env["intrastat.product.declaration"] + notedict, key2label = decl_model._prepare_notedict() if decl_model._is_product(line): hs_code = line.product_id.get_hs_code_recursively() if not hs_code: