Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2 Відповіді
5969 Переглядів

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.

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
1
бер. 21
4719
3
бер. 15
9857
1
бер. 18
10469
2
лют. 23
3285
2
жовт. 20
4191