Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
5886 Vizualizări

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?

Imagine profil
Abandonează

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

Autor Cel mai bun răspuns

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.

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
mar. 21
4648
3
mar. 15
9729
1
mar. 18
10439
2
feb. 23
3205
2
oct. 20
4134