Merge lp:~openerp-dev/openobject-addons/6.0-opw-582072-skh into lp:openobject-addons/6.0

Proposed by Somesh Khare
Status: Needs review
Proposed branch: lp:~openerp-dev/openobject-addons/6.0-opw-582072-skh
Merge into: lp:openobject-addons/6.0
Diff against target: 13 lines (+2/-1)
1 file modified
mrp/mrp.py (+2/-1)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/6.0-opw-582072-skh
Reviewer Review Type Date Requested Status
Naresh(OpenERP) Pending
Review via email: mp+136101@code.launchpad.net

Description of the change

Hello Sir,

[FIX]mrp: Production Order does not link traceability info when Finished Product is split in Production Lots.

1. Create a new Manufacturing Order for product pc2, set product qty to 2 confirm production
2. On the tab finished product, open the line for pc2, and use the split button next to production lot
3. In the split in lots window, enter pl1 and pl2 each with quantity 1 under Production Lot Numbers
4. Follow the steps on Manufacturing Order: Press Buttons, Force reservation then start production and then produce
5. 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

Kindly review the branch and please share your views,

Thanks
Somesh Khare

To post a comment you must log in.

Unmerged revisions

5377. By Somesh Khare

[FIX]mrp: Production Order does not link traceability info when Finished Product is split in Production Lots (Reference: Case 582072)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'mrp/mrp.py'
2--- mrp/mrp.py 2012-03-02 11:51:32 +0000
3+++ mrp/mrp.py 2012-11-26 06:45:24 +0000
4@@ -751,7 +751,8 @@
5 production_qty = rest_qty
6 if rest_qty > 0 :
7 stock_mov_obj.action_consume(cr, uid, [produce_product.id], production_qty, context=context)
8-
9+
10+ production = self.browse(cr, uid, production_id, context=context)
11 for raw_product in production.move_lines2:
12 new_parent_ids = []
13 parent_move_ids = [x.id for x in raw_product.move_history_ids]