diff --git a/addons/sale_stock/models/account_move.py b/addons/sale_stock/models/account_move.py index 07488bce8a1..bd95e155ce2 100644 --- a/addons/sale_stock/models/account_move.py +++ b/addons/sale_stock/models/account_move.py @@ -97,6 +97,8 @@ class AccountMove(models.Model): 'quantity': qty, 'uom_name': lot_id.product_uom_id.name, 'lot_name': lot_id.name, + # The lot id is needed by localizations to inherit the method and add custom fields on the invoice's report. + 'lot_id': lot_id.id }) return lot_values