From f80d043af28988279a04d6b150eb617b374b3de2 Mon Sep 17 00:00:00 2001 From: William Henrotin Date: Thu, 9 Nov 2017 11:27:27 +0100 Subject: [PATCH] [FIX] sales_team: impossible to print sale report. The sale channel report was enable to be printed because a date was computed from float numbers instead of integer. See opw-779713 for more details. --- addons/sales_team/models/crm_team.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/sales_team/models/crm_team.py b/addons/sales_team/models/crm_team.py index 1ef95ab39c2..5589d2e0aa0 100644 --- a/addons/sales_team/models/crm_team.py +++ b/addons/sales_team/models/crm_team.py @@ -115,7 +115,7 @@ class CrmTeam(models.Model): # we take the start of the following month/week/day if we group by month/week/day # (to avoid having twice the same month/week/day from different years/month/week) if self.dashboard_graph_group == 'month': - start_date = date(start_date.year + start_date.month / 12, start_date.month % 12 + 1, 1) + start_date = date(start_date.year + start_date.month // 12, start_date.month % 12 + 1, 1) # handle period=week, grouping=month for silly managers if self.dashboard_graph_period == 'week': start_date = today.replace(day=1)