跳至内容
菜单
此问题已终结
2 回复
5768 查看

I created a back button for a custom module that executes this code:

action = {
'type': 'ir.actions.client', 'tag': 'history_back',
}

It worked in v11, but no longer works in v12. Anyone know a reason this wouldn't work after the upgrade, or a different way to create a back/exit button for my page?

形象
丢弃

I tried using that tag also. It doesn't work anymore with V13 either.

编写者 最佳答案

While I haven't been able to figure out why the action isn't working, I did find a way around it by using this:

action = {
'type': 'ir.actions.act_window',
'view_type': 'form',
'view_mode': 'form',
'view_id': my_view,
'res_model': 'my_model',
'target': 'main',
'res_id': id,
}


It isn't perfect, but it solved by problem.

形象
丢弃
相关帖文 回复 查看 活动
1
3月 21
4542
3
3月 15
9584
1
3月 18
10327
2
2月 23
3082
2
10月 20
4057