-
- Downloads
[FIX] stock, mrp: do not create an order point for kit BOMs
Steps to reproduce: - install sales, MPS, and purchase - Create a product P with Manufacturing route and component cp with Buy route - Make sure that components cp are not enough in stock and the system runs reorder rule for it. - Create a Sales order for product P and confirm - run scheduler > the system will create a reordering rule for both products ( product P and its child component CP). - Now delete the Reordering rule for product P and change its BoM to Kit - Run the scheduler again - Try accessing the Replenishment Bug: An error message "A product with a kit-type bill of materials can not have a reordering rule." Fix: back porting this fix [1] (prevent creating an order point for manufactured products of type kit) opw-2998740 [1]:https://github.com/odoo/odoo/pull/104366 closes odoo/odoo#107231 Signed-off-by:William Henrotin (whe) <whe@odoo.com>
Showing
- addons/mrp/models/stock_orderpoint.py 6 additions, 0 deletionsaddons/mrp/models/stock_orderpoint.py
- addons/sale_mrp/tests/test_sale_mrp_procurement.py 77 additions, 0 deletionsaddons/sale_mrp/tests/test_sale_mrp_procurement.py
- addons/stock/models/stock_orderpoint.py 7 additions, 6 deletionsaddons/stock/models/stock_orderpoint.py
Please register or sign in to comment