From c1ebddc98ef78946199038b74df0480266eb353a Mon Sep 17 00:00:00 2001 From: Bertrand Chenal Date: Mon, 6 Apr 2009 13:23:03 +0200 Subject: [PATCH] Re-added comment --- move.py | 1 + 1 file changed, 1 insertion(+) diff --git a/move.py b/move.py index b345ef00e1..0e28bf9d0c 100644 --- a/move.py +++ b/move.py @@ -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