[IMP] improves the formatting of the dates returned by read_group in orm.py (for ex, January -> January 2014 or W4 -> W4 2014)
bzr revid: ged@openerp.com-20140130155117-ldsq4tjat96ustd8
This commit is contained in:
parent
e9e2c5d587
commit
02313ae739
|
@ -2680,13 +2680,13 @@ class BaseModel(object):
|
|||
interval = 'month'
|
||||
|
||||
if interval == 'day':
|
||||
display_format = 'dd MMMM YYYY'
|
||||
display_format = 'dd MMM YYYY'
|
||||
elif interval == 'week':
|
||||
display_format = "'W'w"
|
||||
display_format = "'W'w YYYY"
|
||||
elif interval == 'month':
|
||||
display_format = 'MMMM'
|
||||
display_format = 'MMMM YYYY'
|
||||
elif interval == 'quarter':
|
||||
display_format = 'QQQ'
|
||||
display_format = 'QQQ YYYY'
|
||||
elif interval == 'year':
|
||||
display_format = 'YYYY'
|
||||
|
||||
|
|
Loading…
Reference in New Issue