Skip to Content
Menu
This question has been flagged
2 Replies
4626 Views

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?

Avatar
Discard

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

Author Best Answer

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.

Avatar
Discard
Related Posts Replies Views Activity
1
Mar 21
3352
3
Mar 15
8264
1
Mar 18
9377
2
Feb 23
1611
2
Oct 20
3062