diff --git a/modules/account_stock_eu/stock.py b/modules/account_stock_eu/stock.py index 0adce5955b..56e59d9563 100644 --- a/modules/account_stock_eu/stock.py +++ b/modules/account_stock_eu/stock.py @@ -248,6 +248,8 @@ class Move(metaclass=PoolMeta): and (not move.intrastat_from_country or not move.intrastat_to_country)): unknown_country.append(move) + if move.intrastat_type and move.internal_weight is None: + move.internal_weight = move.on_change_with_internal_weight() if unknown_country: warning_name = Warning.format( 'intrastat_country', unknown_country)