[FIX]: crm: Fixed problem of categ_id in crm_report
bzr revid: rpa@tinyerp.com-20091230070348-98eqwddi20kg4662
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user