Re-added comment

This commit is contained in:
Bertrand Chenal committed 2009-04-06 13:23:03 +02:00
1 parent 21a78ca307
commit c1ebddc98e
1 file changed
+1
+1
View File
@@ -460,6 +460,7 @@ class Move(ModelSQL, ModelView):
vals['uom'], vals['unit_price'], vals['currency'],
vals['company'], context=context)
if not vals.get('cost_price'):
# Re-read product to get the updated cost_price
product = product_obj.browse(cursor, user, vals['product'],
context=context)
vals['cost_price'] = product.cost_price