From b3b39b86994e06a1d93d03653cefafd862c96d41 Mon Sep 17 00:00:00 2001 From: ado Date: Fri, 2 Mar 2012 14:22:20 +0100 Subject: [PATCH] [FIX] account move entry should be created with 0.0 value when cost price is 0.0 bzr revid: xal@openerp.com-20120302132220-015g1apibi2x5bmc --- addons/stock/stock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/stock/stock.py b/addons/stock/stock.py index 885f7cd2077..d26ca8f0da3 100644 --- a/addons/stock/stock.py +++ b/addons/stock/stock.py @@ -2165,7 +2165,7 @@ class stock_move(osv.osv): context = {} currency_ctx = dict(context, currency_id = move.company_id.currency_id.id) amount_unit = move.product_id.price_get('standard_price', context=currency_ctx)[move.product_id.id] - reference_amount = amount_unit * qty or 1.0 + reference_amount = amount_unit * qty return reference_amount, reference_currency_id