odoomrp / odoomrp-wip

WIP of OdooMRP
http://www.odoomrp.com
GNU Affero General Public License v3.0
117 stars 247 forks source link

[8.0][mrp_final_product_lot]When used with mrp_byproducts doesn't create subproducts lots. #1375

Closed AntMoreno closed 7 years ago

AntMoreno commented 7 years ago

Good day

I repost this since original issue was closed and I cannot reopen it, and the issue is not fixed.

Steps to reproduce

1.- Install mrp_byproducts checking option "Produce several products from one manufacturing order" in Settings -> Configuration -> Manufacturing 2.- Create a BoM for a "Product A" that will consume "Product B" and will also produce "Product C" as subproduct. 3.- Launch a Manufacturing Order for "Product A"

Current behaviour

mrp_final_product_lot only creates one lot number in stock_production_lot, only for "Product A", but creates quants for both "Product A" and "Product C" linked to the same lot_id of "Product A".

Expected behaviour

mrp_final_product_lot should create two lots, one for Product A" and one for "Product C", since both are final products of the order. It also should create the quant of "Product A" linked to the lot_id of "Product A" and the quant of "Product C" linked to the lot_id of "Product C".

Aditional information:

If you want to see the scoop of the problem that this behaviour produces, just make a manufacturing order as described, and once produced and with lot created (say lot AAAA) try to make a picking of product C with lot AAAA. In the transfer details form you won't be able to select the lot AAAA because that lot was only created for Product A, and the drop-down lot list can't show it since it doesn't exists for Product C.

Thank you

AntMoreno commented 7 years ago

I have uninstalled mrp_final_product_lot and the problem occurs also with mrp_byproduct alone, so I have open an issue in https://github.com/odoo/odoo/issues/17702