-
- Downloads
[FIX] sale_stock, purchase_stock: use product name as `stock.move` name
Steps to reproduce the bug: - Create a Kit product "Kit 1": - Add a BOM with a component “C1” - Add a sales description - Create another kit product without a sales description "Kit 2": - Add a BOM with a component "C2" - Make sure you have a qty of “C1” and "C2" - Create a SO: - Add "Kit 1" and "Kit 2" - Add any other storable product - Confirm the SO - Go to the delivery → validate it - Print the delivery slip Problem: The report doesn’t contain the kit product. Because in the report, the `stock.move.line` are filtered by checking the name of their move if it has the same name as the product in the bill of material, but like the `stock.move` has the name ('description') of the `sale.order.line` instead of the product name, the lines are filtered and not displayed: https://github.com/odoo/odoo/blob/14.0/addons/mrp/report/report_deliveryslip.xml#L9 The behavior is the same for purchase orders opw-2960467 closes odoo/odoo#104377 X-original-commit: bf3c398f Signed-off-by:Tiffany Chang <tic@odoo.com>
Showing
- addons/purchase_stock/models/purchase.py 1 addition, 1 deletionaddons/purchase_stock/models/purchase.py
- addons/sale_mrp/tests/test_sale_mrp_kit_bom.py 60 additions, 0 deletionsaddons/sale_mrp/tests/test_sale_mrp_kit_bom.py
- addons/sale_stock/models/sale_order.py 1 addition, 1 deletionaddons/sale_stock/models/sale_order.py
Loading
Please register or sign in to comment