[IMP] hr : added or condition 0.0 in amount variable of account_analytic_line.py of account module

bzr revid: bde@tinyerp.com-20110930095942-8ixwtg11g5mvhifk
This commit is contained in:
Bharat (OpenERP) 2011-09-30 15:29:42 +05:30
parent 1735e48887
commit db1acdf996
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ class account_analytic_line(osv.osv):
ctx['uom'] = unit
amount_unit = prod.price_get(pricetype.field, context=ctx)[prod.id]
prec = self.pool.get('decimal.precision').precision_get(cr, uid, 'Account')
amount = amount_unit * quantity
amount = amount_unit * quantity or 0.0
result = round(amount, prec)
if not flag:
result *= -1