[FIX]: crm: Fixed problem of categ_id in crm_report

bzr revid: rpa@tinyerp.com-20091230070348-98eqwddi20kg4662
This commit is contained in:
rpa (Open ERP)
2009-12-30 12:33:48 +05:30
parent aa67e414d2
commit 9c61d4cc7f
+2 -1
View File
@@ -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()