[FIX] intrastat_product: fix error creating intrastat product declaration when missing Country of Origin/Destination

This commit is contained in:
Rafael Petrella
2022-08-29 10:15:48 -03:00
parent 9b55683b21
commit d64ec5f7e8

View File

@@ -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,
},