From d64ec5f7e8910d40812c7aed104459efa4438d9b Mon Sep 17 00:00:00 2001 From: Rafael Petrella Date: Mon, 29 Aug 2022 10:15:48 -0300 Subject: [PATCH] [FIX] intrastat_product: fix error creating intrastat product declaration when missing Country of Origin/Destination --- intrastat_product/report/intrastat_product_report_xls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/intrastat_product/report/intrastat_product_report_xls.py b/intrastat_product/report/intrastat_product_report_xls.py index 7affa55..916b297 100644 --- a/intrastat_product/report/intrastat_product_report_xls.py +++ b/intrastat_product/report/intrastat_product_report_xls.py @@ -55,7 +55,7 @@ class IntrastatProductDeclarationXlsx(models.AbstractModel): }, "line": { "type": "string", - "value": self._render("line.src_dest_country_code"), + "value": self._render("line.src_dest_country_code or ''"), }, "width": 28, },