[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:
parent
1735e48887
commit
db1acdf996
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue