[FIX] sale_stock: Enable adding custom fields to the lots table

If we add the id on the values returned by the method
_get_invoiced_lot_values() then we can inherit it to add
custom fields on the table of invoiced lot on the invoice's report.

closes odoo/odoo#68100

X-original-commit: cfff5da8b14bb843537eda13fdb6f971c7074e46
Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
Signed-off-by: Josse Colpaert <jco@openerp.com>
This commit is contained in:
Bruno Zanotti (ADHOC)
2021-03-18 15:39:18 +00:00
parent 163f7acb2c
commit ef2961adf0
+2
View File
@@ -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