[FIX] round amount insted of converting in to int.
bzr revid: tpa@tinyerp.com-20130906111655-f6na9nvtot6t7wdd
This commit is contained in:
parent
e7764209b7
commit
17b89198ab
|
@ -111,7 +111,7 @@ class crm_case_section(osv.osv):
|
||||||
}
|
}
|
||||||
|
|
||||||
def action_forecast(self, cr, uid, id, value, context=None):
|
def action_forecast(self, cr, uid, id, value, context=None):
|
||||||
return self.write(cr, uid, [id], {'user_currency_invoiced_forecast': int(float(value))}, context=context)
|
return self.write(cr, uid, [id], {'user_currency_invoiced_forecast': round(float(value))}, context=context)
|
||||||
|
|
||||||
class res_users(osv.Model):
|
class res_users(osv.Model):
|
||||||
_inherit = 'res.users'
|
_inherit = 'res.users'
|
||||||
|
|
Loading…
Reference in New Issue