[FIX] correctly type date field in crm_lead_report
opening_date and date_closed were cast to char but are supposed to be dates. When you try to group crm_lead_report by one of them, postgres was not happy. Now, it properly tells postgres that they are of type date.
This commit is contained in:
parent
afb19c59ee
commit
6f563d6284
|
@ -88,8 +88,8 @@ class crm_lead_report(osv.osv):
|
|||
id,
|
||||
c.date_deadline,
|
||||
|
||||
to_char(c.date_open, 'YYYY-MM-DD') as opening_date,
|
||||
to_char(c.date_closed, 'YYYY-mm-dd') as date_closed,
|
||||
date(c.date_open) as opening_date,
|
||||
date(c.date_closed) as date_closed,
|
||||
|
||||
date_trunc('day',c.date_last_stage_update) as date_last_stage_update,
|
||||
|
||||
|
|
Loading…
Reference in New Issue