Amit Dodiya (OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/6.1-opw-575236-ado into
lp:openobject-addons/6.1.
Requested reviews:
Xavier ALT (OpenERP) (xal-openerp)
Naresh(OpenERP) (nch-openerp)
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-575236-ado/+merge/107733
Hello,
"[FIX] action_consume wizard is not generating proper move lines for consume
product while spliting the product with more than one lot in product_to_consume
moves"
Steps:
1). Create a Manufacturing Order with CPU_GEN for 2 qty and confirm the
Manufacturing Order, You will see 4 products line in Product to Consume field
2). Open CPU1 and click on Split button for Production Lot
3). Add 2 lots (Lot1 with Qty=1 and Lot2 with Qty=1)
4). CPU1 is divided in 2 lines, now produce the product
5). You will find one line remaining for CPU1 to produce.
Due to this Consume Product wizard throwning unnecessary warning while
producing the remaining line for CPU1.
Regards,
Amit
--
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-575236-ado/+merge/107733
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/6.1-opw-575236-ado.
=== modified file 'mrp/mrp.py'
--- mrp/mrp.py 2012-02-13 18:07:41 +0000
+++ mrp/mrp.py 2012-05-29 08:35:23 +0000
@@ -736,7 +736,8 @@
# we already have more qtys consumed than we need
continue
- raw_product[0].action_consume(qty, raw_product[0].location_id.id, context=context)
+ for consume_line in raw_product:
+ consume_line.action_consume(qty, consume_line.location_id.id, context=context)
if production_mode == 'consume_produce':
# To produce remaining qty of final product
_______________________________________________
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