[v6]Production Order does not link traceability info when Finished Product is split in Production Lots
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Committed
|
Low
|
OpenERP Publisher's Warranty Team | ||
credativ-openerp |
New
|
Undecided
|
Unassigned |
Bug Description
When you split the Finished Products line of a Manufacturing Order, using two Production Lots, the stock moves of the consumed products are not linked to all the Finished Product lines, therefore if you open the upstream traceability of the different production lots, the moves of the consumed products will only be visible on one production lot.
Steps to reproduce:
* using trunk server and addons, modules stock and mrp installed with demo data
* create a new Manufacturing Order for product pc2, set product qty to 2
* confirm production
* on the tab finished product, open the line for pc2, and use the split button next to production lot
* in the split in lots window, enter pl1 and pl2 each with quantity 1 under Production Lot Numbers
* Manufacturing Order: Force reservation, start production, produce
* Under Warehouse / Traceability / Production Lots, open the "upstream traceability" of pl1 and pl2,
you will see one with the consumed products attached, and one without
(for the upstream traceability screen to work, you have to remove the type:'' from the context of this button in the stock.productio
Possible solution:
There is code to handle this situation in mrp/mrp.py under action_produce. The relevant lines are:
for raw_product in production.
for final_product in production.
if final_product.id not in parent_move_ids:
for new_parent_id in new_parent_ids:
but at this point the move_lines2 does not yet contain the consumed lines. adding a line:
production = self.browse(cr, uid, production.id)
right before this loop fixes the problem.
Related branches
- Naresh(OpenERP): Pending requested
-
Diff: 13 lines (+2/-1)1 file modifiedmrp/mrp.py (+2/-1)
summary: |
- Production Order does not link traceability info when Finished Product - is split in Production Lots + [v6]Production Order does not link traceability info when Finished + Product is split in Production Lots |
Changed in openobject-addons: | |
assignee: | nobody → OpenERP Publisher's Warranty Team (openerp-opw) |
importance: | Undecided → Low |
status: | New → Confirmed |
tags: | added: maintenance |
Changed in openobject-addons: | |
status: | Confirmed → In Progress |
Hello,
Any news on this bug ? Is it fixed in some rev ?
Thank you