Skip to content
Snippets Groups Projects
Commit 01d4cefd authored by Ivàn Todorovich's avatar Ivàn Todorovich
Browse files

[FIX] mrp: use 'qties' context based cache in _compute_quantities_dict


Regression introduced here: fba9c9f3

closes odoo/odoo#88382

X-original-commit: 83c7017f
Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
Signed-off-by: default avatarArnold Moyaux <arm@odoo.com>
parent e1be4b5c
No related branches found
No related tags found
No related merge requests found
......@@ -159,8 +159,8 @@ class ProductProduct(models.Model):
continue
rounding = component.uom_id.rounding
component_res = (
res.get(component.id)
if component.id in res
qties.get(component.id)
if component.id in qties
else {
"virtual_available": float_round(component.virtual_available, precision_rounding=rounding),
"qty_available": float_round(component.qty_available, precision_rounding=rounding),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment