hr: cost calculation for price: zero products in timesheet
lp bug: https://launchpad.net/bugs/849603 fixed bzr revid: bde@tinyerp.com-20110928061921-iths10cslnehylur
This commit is contained in:
@@ -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 or 1.0
|
||||
amount = amount_unit * quantity
|
||||
result = round(amount, prec)
|
||||
if not flag:
|
||||
result *= -1
|
||||
|
||||
Reference in New Issue
Block a user