diff options
| author | Andrea Grazioso (agr-odoo) <agr@odoo.com> | 2020-04-01 12:39:11 +0000 |
|---|---|---|
| committer | Andrea Grazioso (agr-odoo) <agr@odoo.com> | 2020-04-03 06:25:37 +0000 |
| commit | 9ae9e7e0a6cfe5c8c6d8914b316d40dd9e143b5c (patch) | |
| tree | 0c0e421e40b190dfa0ea3ff7f5280e527f14be80 /addons/web_editor/models | |
| parent | d1bbf11af27e4ce12b025ef22e397302ee6336c2 (diff) | |
[FIX] mrp: fix bom products quantity calculation in list view
Go to inventory>product variants (list view), search for
'FURN_78236'.
Set quantity on hand (qty_available) 50
Now, back in list view, adjust your search to FURN_7
QTY on hand for FURN_78236 is 0.
This occur because during the computation of qty_available, the bom
kits (FURN_78236) are calculated first, but the qty_available depends
on the bom lines products, which are calculated only at the end.
Since qty_available became protected by the global environment, it
cannot be recomputed recursively and it is not in cache, thus is 0.
Making the simple products compute first in the _compute_quantity fix
the issue
opw-2226417
closes odoo/odoo#48924
X-original-commit: f41c650f162021bb6c76736c7dcbe4eee059cec1
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Diffstat (limited to 'addons/web_editor/models')
0 files changed, 0 insertions, 0 deletions
