Handle new window_name attributes of act_window
This commit is contained in:
1 parent
284953031e
commit
4450bd2957
1 file changed
+5
-1
@@ -138,9 +138,13 @@ class Action(object):
|
||||
if datas.get('domain', False):
|
||||
domain.append(datas['domain'])
|
||||
|
||||
name = False
|
||||
if action.get('window_name', True):
|
||||
name = action.get('name', False)
|
||||
|
||||
Window.create(view_ids, datas['res_model'], datas['res_id'], domain,
|
||||
action['view_type'], win, ctx,
|
||||
datas['view_mode'], name=action.get('name', False),
|
||||
datas['view_mode'], name=name,
|
||||
limit=datas['limit'], auto_refresh=datas['auto_refresh'])
|
||||
elif action['type'] == 'ir.action.wizard':
|
||||
Wizard.execute(action['wiz_name'], datas, win,
|
||||
|
||||
Reference in new issue
Block a user