support for calendar view if resource has date column.
bzr revid: ame@tinyerp.com-d5174a7839d43646b76af60b6009c35c630e4c5b
This commit is contained in:
@@ -176,6 +176,11 @@ class act_window(osv.osv):
|
||||
find = True
|
||||
continue
|
||||
res[act.id].append((False, t))
|
||||
|
||||
if 'calendar' not in modes:
|
||||
mobj = self.pool.get(act.res_model)
|
||||
if mobj._date_name in mobj._columns:
|
||||
res[act.id].append((False, 'calendar'))
|
||||
return res
|
||||
|
||||
_columns = {
|
||||
|
||||
Reference in New Issue
Block a user