Ravi Gohil (OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/6.0-opw-574680-rgo into
lp:openobject-addons/6.0.
Requested reviews:
Naresh(OpenERP) (nch-openerp)
Related bugs:
Bug #715494 in OpenERP Addons: "[PS] Manufacturing : MO: change product qty
doesn't change pickinglist"
https://bugs.launchpad.net/openobject-addons/+bug/715494
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-574680-rgo/+merge/105055
Hello,
When we change the quantity in MO using wizard, the changed quantity is not
being updated in its related picking list.
Steps to reproduce the issue:
1) Locate MO/00006 - it should be for [PC3] Medium PC with a quantity of 5.
2) Click Change Qty
3) Change to 4
4) Observe that, under Products to Consume, the quantity for the three parts
changes to 4.
5) Force Reservation for the Order.
6) Check the DONE stock moves - for PROD: MO/00006 there are three - for the
three parts - all with quantity of 5. (It may be easier to see these with an
advanced filter Name contains PROD: Mo/00006)
7) Go back to the MO, start production and produce 4.
8) Check the DONE stock moves - for PROD: MO/00006 there are now three more -
for the three parts - all with quantity of 4.
Note: With the extended interface, at step 5 you just open to picking from the
Extra Information tab to see the stock move is wrong (at 5).
This fix fixes the issue. Kindly review it,
Thanks.
--
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-574680-rgo/+merge/105055
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/6.0-opw-574680-rgo.
=== modified file 'mrp/wizard/change_production_qty.py'
--- mrp/wizard/change_production_qty.py 2011-01-14 00:11:01 +0000
+++ mrp/wizard/change_production_qty.py 2012-05-08 11:13:45 +0000
@@ -66,9 +66,11 @@
prod = prod_obj.browse(cr, uid, record_id, context=context)
prod_obj.write(cr, uid,prod.id, {'product_qty': wiz_qty.product_qty})
prod_obj.action_compute(cr, uid, [prod.id])
+ move_lines = prod.move_lines
+ move_lines.extend(prod.picking_id.move_lines)
move_lines_obj = self.pool.get('stock.move')
- for move in prod.move_lines:
+ for move in move_lines:
bom_point = prod.bom_id
bom_id = prod.bom_id.id
if not bom_point:
_______________________________________________
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