Fill unknown country only for move with an intrastat type and one empty country
Closes #14008
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user