From 1906dbfe4e4645786154967c41522d7f00959ed9 Mon Sep 17 00:00:00 2001 From: "Habib (ayh)" Date: Wed, 29 Dec 2021 17:53:27 +0000 Subject: [PATCH] [IMP] stock: include UOM object in aggregated product quantities with l10n_mx_edi_stock being introduced in enterprise - we require the unit of measure object in the aggregated lines so that it can be used on the delivery report. odoo/enterprise#21591 Task-2585661 closes odoo/odoo#82224 X-original-commit: 4d074686c1eb716020b950ea86650ecf2bda08aa Related: odoo/enterprise#23244 Signed-off-by: Josse Colpaert Signed-off-by: Ayob Habib (ayh) --- addons/stock/models/stock_move_line.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/stock/models/stock_move_line.py b/addons/stock/models/stock_move_line.py index f22276d68fd..2a107b8be52 100644 --- a/addons/stock/models/stock_move_line.py +++ b/addons/stock/models/stock_move_line.py @@ -774,6 +774,7 @@ class StockMoveLine(models.Model): 'qty_done': move_line.qty_done, 'qty_ordered': qty_ordered, 'product_uom': uom.name, + 'product_uom_rec': uom, 'product': move_line.product_id} else: aggregated_move_lines[line_key]['qty_done'] += move_line.qty_done