[IMP]stock:Improvement in code

bzr revid: ron@tinyerp.com-20110621101846-1s9azk4jlwkpzwd9
This commit is contained in:
ron@tinyerp.com
2011-06-21 15:48:46 +05:30
parent f3168065b6
commit 58e403bc23
+1 -1
View File
@@ -1257,7 +1257,7 @@ class stock_picking(osv.osv):
if (pick.type == 'in') and (move.product_id.cost_method == 'average'):
new_price_unit = move.product_id.standard_price
else:
new_price_unit = price_unit
new_price_unit = self.get_current_cost_price(cr, uid, ids, pick, move, product_price, context=context)
move_obj.write(cr, uid, [move.id],
{
'product_qty' : move.product_qty - product_qty,