From 3887ccec077dd4d7e3da6c5942391a0b6b31aa8e Mon Sep 17 00:00:00 2001 From: Luc De Meyer Date: Sat, 15 Oct 2022 18:30:42 +0200 Subject: [PATCH] intrastat declaration - fix excel export --- intrastat_product/report/intrastat_product_report_xls.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/intrastat_product/report/intrastat_product_report_xls.py b/intrastat_product/report/intrastat_product_report_xls.py index a666d25..f67a35b 100644 --- a/intrastat_product/report/intrastat_product_report_xls.py +++ b/intrastat_product/report/intrastat_product_report_xls.py @@ -45,7 +45,7 @@ class IntrastatProductDeclarationXlsx(models.AbstractModel): "header": {"type": "string", "value": self._("Product C/O Code")}, "line": { "type": "string", - "value": self._render("line.product_origin_country_id.code or ''"), + "value": self._render("line.product_origin_country_code"), }, "width": 28, }, @@ -72,7 +72,7 @@ class IntrastatProductDeclarationXlsx(models.AbstractModel): }, "line": { "type": "string", - "value": self._render("line.src_dest_country_id.code"), + "value": self._render("line.src_dest_country_code"), }, "width": 28, }, @@ -83,7 +83,7 @@ class IntrastatProductDeclarationXlsx(models.AbstractModel): }, "line": { "type": "string", - "value": self._render("line.src_dest_country_code"), + "value": self._render("line.src_dest_country_id.name or ''"), }, "width": 28, },