[FIX] sales_team: Don't parse graph values

The graphs can accept None as value. int(None) is not working well.
This commit is contained in:
Yannick Tivisse
2017-08-16 14:25:35 +02:00
parent 60cd06e15f
commit fc1f00a7d0
+1 -1
View File
@@ -207,7 +207,7 @@ class CrmTeam(models.Model):
for data_item in graph_data:
index = int((data_item.get('x_value') - start_date.isocalendar()[1]) % weeks_in_start_year)
values[index][y_field] = int(data_item.get('y_value'))
values[index][y_field] = data_item.get('y_value')
elif self.dashboard_graph_group == 'month':
for month in range(0, (end_date.month - start_date.month) % 12 + 1):