Fill unknown country only for move with an intrastat type and one empty country

Closes #14008
This commit is contained in:
Sergi Almacellas Abellana
2025-05-11 01:26:47 +02:00
parent 41993306bf
commit 4da84d5b3f
+1 -1
View File
@@ -245,7 +245,7 @@ class Move(metaclass=PoolMeta):
unknown_country = []
for move in moves:
move._set_intrastat()
if (not move.intrastat_type
if (move.intrastat_type
and (not move.intrastat_from_country
or not move.intrastat_to_country)):
unknown_country.append(move)