[IMP]mrp: Optimize code

bzr revid: aag@tinyerp.com-20110817093620-c3bmophuut6n2to6
This commit is contained in:
Atik Agewan (OpenERP)
2011-08-17 15:06:20 +05:30
parent 8001a5f2b9
commit 306da071e7
+1 -1
View File
@@ -682,7 +682,7 @@ class mrp_production(osv.osv):
return res
def rest_qty_compute(self, cr, uid, obj, move_obj=None, context=None):
qty = obj.product_qty * sub_qty
qty = obj.product_qty
res = {'product_qty': qty, 'sub_qty': 1}
return res