Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
5865 Widoki

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?

Awatar
Odrzuć

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

Autor Najlepsza odpowiedź

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.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
mar 21
4638
3
mar 15
9712
1
mar 18
10425
2
lut 23
3179
2
paź 20
4125