diff --git a/addons/crm/report/crm_report.py b/addons/crm/report/crm_report.py index 9adabc09868..87b77937c5a 100644 --- a/addons/crm/report/crm_report.py +++ b/addons/crm/report/crm_report.py @@ -104,13 +104,14 @@ class report_crm_case_section_stage(osv.osv): c.state, c.stage_id, c.section_id, + c.categ_id, count(*) as nbr, sum(planned_revenue) as amount_revenue, to_char(avg(date_closed-c.create_date), 'DD"d" HH24:MI:SS') as delay_close from crm_case c where c.stage_id is not null - group by to_char(c.create_date, 'YYYY'), to_char(c.create_date, 'MM'), c.user_id, c.state, c.stage_id, c.section_id)""") + group by to_char(c.create_date, 'YYYY'), to_char(c.create_date, 'MM'), c.user_id, c.state, c.stage_id, c.categ_id, c.section_id)""") report_crm_case_section_stage()