-
- Downloads
[FIX] purchase_mrp: split cost in bom line
Steps to reproduce:
- Create Storable Product "Super Test" with Cost of $1.
- Create Storable Product "Pack of Super Test" with Cost of $10.
- Create a Kit BoM that produces 1 "Pack of Super Test" from 10 "Super Test".
- Ensure product category on both products is set to Automated FIFO Inventory Valuation.
- Create a PO for 20 "Pack of Super Test" and confirm.
- Process the Delivery and look at inventory valuation.
- See that "Super Test" has moved quantity at 200 with Unit Value of 10 each (taken from kit product!).
Bug:
cost isn't split on the qty of the bom line
Fix:
take product quantities of the bom into consideration
opw-3453703
closes odoo/odoo#132186
Signed-off-by:
William Henrotin (whe) <whe@odoo.com>
Showing
- addons/purchase_mrp/models/mrp_bom.py 2 additions, 2 deletionsaddons/purchase_mrp/models/mrp_bom.py
- addons/purchase_mrp/models/stock_move.py 3 additions, 3 deletionsaddons/purchase_mrp/models/stock_move.py
- addons/purchase_mrp/tests/test_purchase_mrp_flow.py 28 additions, 0 deletionsaddons/purchase_mrp/tests/test_purchase_mrp_flow.py
Please register or sign in to comment