diff --git a/addons/sale/sales_team.py b/addons/sale/sales_team.py index ecdecea782f..c4a593cf11d 100644 --- a/addons/sale/sales_team.py +++ b/addons/sale/sales_team.py @@ -62,4 +62,4 @@ class crm_team(osv.Model): } def update_invoiced_target(self, cr, uid, id, value, context=None): - return self.write(cr, uid, [id], {'invoiced_target': round(float(value))}, context=context) + return self.write(cr, uid, [id], {'invoiced_target': round(float(value or 0))}, context=context)