Please sign in to comment.
[FIX] mrp: Duplicate finished_move_line_ids from by_product in a BOM
Steps to reproduce the bug: - Create product A (type='product',tracking='lot') - Create product B (type='product',tracking='lot') - Create product Z(type='consu',tracking='none') - Create BoM for product Z with product A as component and product B as sub_product (i.e. By product) + create any routing (i.e. 1 operation). - Create an MO for product z, plan it, process the given work order, input the serial/lot for the components and byproducts... Bug: Two lines for product B were displayed in the finished_move_line_ids of the MO This bug occured in enterprise because the function _create_checks defined on model 'mrp.workorder' creates the quality checks that create the finished_move_line_ids for the by_product tracked by lot or by serial number (in fuction _update_active_move_line defined on model 'mrp.workorder'). So the finished_move_line_ids were created two times with the ones created in fuction record_production defined on model 'mrp.workorder' in community. opw:1963163
- Loading branch information...