[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 <jco@odoo.com>
Signed-off-by: Ayob Habib (ayh) <ayh@odoo.com>
This commit is contained in:
Habib (ayh)
2022-01-06 07:42:54 +00:00
parent f810f2d120
commit 1906dbfe4e
+1
View File
@@ -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