[FIX] round amount insted of converting in to int.

bzr revid: tpa@tinyerp.com-20130906111655-f6na9nvtot6t7wdd
This commit is contained in:
Turkesh Patel (Open ERP) 2013-09-06 16:46:55 +05:30
parent e7764209b7
commit 17b89198ab
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ class crm_case_section(osv.osv):
}
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):
_inherit = 'res.users'