[FIX] crm_claim: The report is wrong without the history column for the sql view
bzr revid: stw@openerp.com-20110915144611-z4pd13cef8fw9r5e
This commit is contained in:
parent
92fef4559b
commit
a16706674f
|
@ -104,7 +104,7 @@ class crm_claim_report(osv.osv):
|
||||||
c.type_action as type_action,
|
c.type_action as type_action,
|
||||||
date_trunc('day',c.create_date) as create_date,
|
date_trunc('day',c.create_date) as create_date,
|
||||||
avg(extract('epoch' from (c.date_closed-c.create_date)))/(3600*24) as delay_close,
|
avg(extract('epoch' from (c.date_closed-c.create_date)))/(3600*24) as delay_close,
|
||||||
(SELECT count(id) FROM mailgate_message WHERE model='crm.claim' AND res_id=c.id AND history=True) AS email,
|
(SELECT count(id) FROM mail_message WHERE model='crm.claim' AND res_id=c.id) AS email,
|
||||||
extract('epoch' from (c.date_deadline - c.date_closed))/(3600*24) as delay_expected
|
extract('epoch' from (c.date_deadline - c.date_closed))/(3600*24) as delay_expected
|
||||||
from
|
from
|
||||||
crm_claim c
|
crm_claim c
|
||||||
|
|
Loading…
Reference in New Issue