Skip to content
Snippets Groups Projects
Commit 49fd40f9 authored by Touati Djamel (otd)'s avatar Touati Djamel (otd)
Browse files

[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: default avatarTiffany Chang <tic@odoo.com>
parent 6b2896b8
No related branches found
No related tags found
Loading
Loading
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