Skip to content
Snippets Groups Projects
Commit eff3d14d authored by Bhatt Chintal's avatar Bhatt Chintal
Browse files

modif to support portal

bzr revid: bch-b997bd98a8193de8e236249e6d041d2ef3eff115
parent cdbf5c93
No related branches found
No related tags found
No related merge requests found
......@@ -111,16 +111,16 @@ class act_window(osv.osv):
res={}
for act in self.browse(cr, uid, ids):
res[act.id]=[(view.view_id.id, view.view_mode) for view in act.view_ids]
if (not act.view_ids) and act.view_id.id:
if (not act.view_ids):
modes = act.view_mode.split(',')
if act.view_id.type <> modes[0]:
find = False
if act.view_id.id:
res[act.id].append((act.view_id.id, act.view_id.type))
find = False
for t in modes:
if t == act.view_id.type and not find:
find = True
continue
res[act.id].append((False, t))
for t in modes:
if act.view_id and (t == act.view_id.type) and not find:
find = True
continue
res[act.id].append((False, t))
return res
_columns = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment