[FIX] account move entry should be created with 0.0 value when cost price is 0.0

bzr revid: xal@openerp.com-20120302132220-015g1apibi2x5bmc
This commit is contained in:
ado
2012-03-02 14:22:20 +01:00
committed by Xavier ALT
parent 6468fc876a
commit b3b39b8699
+1 -1
View File
@@ -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