Somesh Khare(OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/6.0-opw-582072-skh into
lp:openobject-addons/6.0.
Requested reviews:
Naresh(OpenERP) (nch-openerp)
Related bugs:
Bug #928263 in OpenERP Addons: "[v6]Production Order does not link
traceability info when Finished Product is split in Production Lots"
https://bugs.launchpad.net/openobject-addons/+bug/928263
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-582072-skh/+merge/136101
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
--
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-582072-skh/+merge/136101
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/6.0-opw-582072-skh.
=== modified file 'mrp/mrp.py'
--- mrp/mrp.py 2012-03-02 11:51:32 +0000
+++ mrp/mrp.py 2012-11-26 06:45:24 +0000
@@ -751,7 +751,8 @@
production_qty = rest_qty
if rest_qty > 0 :
stock_mov_obj.action_consume(cr, uid, [produce_product.id], production_qty, context=context)
-
+
+ production = self.browse(cr, uid, production_id, context=context)
for raw_product in production.move_lines2:
new_parent_ids = []
parent_move_ids = [x.id for x in raw_product.move_history_ids]
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp