odoo/odoo#177512

Created by fw-bot
Merged at cb0bb9b21820dd201f3d31fd2a505a38620972f2

Statuses:

label
odoo-dev:saas-17.2-17.0-opw-4113887-stock-fix-lot_name-with-import-otd-DgUT-fw
head
0cbd91b98514196c3d6b061b2a543426e61f81b4
merged
1 year ago by Bugfix, Djamel Touati (otd)
odoo/odoo
17.0 #177061
saas-17.1 #177361
saas-17.2 #177512
saas-17.4 #177516
18.0
saas-18.1
saas-18.2
saas-18.3
saas-18.4
master #177522

[FW][FIX] stock: show lot_ids for byproduct moves

Steps to reproduce the bug:
- Enable by-porduct option in manufacturing settings
- Create a storable product “P1” with a BoM:
- Components: C1
- by-product: C2 tracked by serial number
- Create a manufacturing order (MO) to produce one unit of P1.
- Confirm the MO.
- Click on the detailed operation to select the serial number for C2.

Problem:
the field "lot_id" should be displayed instead of "lot_name".
because we should be able to create and use existing SN with byproduct
moves.

opw-4113887

Forward-Port-Of: #177361
Forward-Port-Of: #177061