diff --git a/modules/account_stock_eu/stock.py b/modules/account_stock_eu/stock.py index 869263243d..e551ba1dc0 100644 --- a/modules/account_stock_eu/stock.py +++ b/modules/account_stock_eu/stock.py @@ -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)