From a5c59a2f139c5de622cf82ad8bd777c96e5bc4ec Mon Sep 17 00:00:00 2001 From: "uco (Open ERP)" Date: Mon, 4 Oct 2010 19:16:58 +0530 Subject: [PATCH] [FIX] mrp: Fixed error on 'Change Qty' wizard when connected with different user. bzr revid: uco@tinyerp.com-20101004134658-ozcgbr9kb4gkh20i --- addons/mrp/wizard/change_production_qty.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/mrp/wizard/change_production_qty.py b/addons/mrp/wizard/change_production_qty.py index 5f7aa0754e1..f5d62d535c9 100644 --- a/addons/mrp/wizard/change_production_qty.py +++ b/addons/mrp/wizard/change_production_qty.py @@ -87,10 +87,10 @@ class change_production_qty(osv.osv_memory): factor = prod.product_qty * prod.product_uom.factor / bom_point.product_uom.factor res = bom_obj._bom_explode(cr, uid, bom_point, factor / bom_point.product_qty, []) for r in res[0]: - if r['product_id']== move.product_id.id: - move_lines_obj.write(cr, uid,move.id, {'product_qty' : r['product_qty']}) + if r['product_id'] == move.product_id.id: + move_lines_obj.write(cr, uid, [move.id], {'product_qty' : r['product_qty']}) for m in prod.move_created_ids: - move_lines_obj.write(cr, uid,m.id, {'product_qty': wiz_qty.product_qty}) + move_lines_obj.write(cr, uid, [m.id], {'product_qty': wiz_qty.product_qty}) return {}