Skip to content

Commit 142d69c

Browse files
MarinaAForgeFlowJordiMForgeFlow
authored andcommitted
[FIX] intrastat_product: skip invoice if the country is not from EU
1 parent ca35fc0 commit 142d69c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

intrastat_product/models/intrastat_product_declaration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ def _gather_invoices(self, notedict):
647647
partner_country = self._get_partner_country(
648648
inv_line, notedict, eu_countries
649649
)
650-
if notedict["inv_origin"] in notedict["invoice"]:
650+
if notedict["invoice"][notedict["inv_origin"]]:
651651
continue
652652

653653
# When the country is the same as the company's country must be skipped.

0 commit comments

Comments
 (0)