X-Git-Url: http://git.inspyration.org/?a=blobdiff_plain;f=addons%2Fstock_account%2Fstock_account.py;fp=addons%2Fstock_account%2Fstock_account.py;h=243d982f8f601ae6d042ef7e04645998ed234f6a;hb=c15f748be05b3709f5e16680569abdc2949468e2;hp=9707263391a26f81d772d96c987db9ad8d7577b2;hpb=1dbf153eb51303c4186ca5e2dacd729aadd95f28;p=odoo%2Fodoo.git diff --git a/addons/stock_account/stock_account.py b/addons/stock_account/stock_account.py index 9707263..243d982 100644 --- a/addons/stock_account/stock_account.py +++ b/addons/stock_account/stock_account.py @@ -267,7 +267,6 @@ class stock_move(osv.osv): def _store_average_cost_price(self, cr, uid, move, context=None): ''' move is a browe record ''' product_obj = self.pool.get('product.product') - move.refresh() if any([q.qty <= 0 for q in move.quant_ids]): #if there is a negative quant, the standard price shouldn't be updated return