Nehal Panchal (OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/6.1-opw-584804-nep into 
lp:openobject-addons/6.1.

Requested reviews:
  Naresh(OpenERP) (nch-openerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-584804-nep/+merge/145565

Hello,

If main product has BoM without any components and if you change the quantity 
of that product from "Change Qty" wizard in Manufacturing Order, it will raise 
an error.

This fixes the issue.

Thanks.
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-584804-nep/+merge/145565
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/6.1-opw-584804-nep.
=== modified file 'mrp/wizard/change_production_qty.py'
--- mrp/wizard/change_production_qty.py	2012-05-07 11:38:13 +0000
+++ mrp/wizard/change_production_qty.py	2013-01-30 09:58:26 +0000
@@ -73,7 +73,8 @@
             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)
+            if move_lines:
+                move_lines.extend(prod.picking_id.move_lines)
 
             move_lines_obj = self.pool.get('stock.move')
             for move in move_lines:

_______________________________________________
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

Reply via email to