콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2 답글
5232 화면

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
4021
3
3월 15
8922
1
3월 18
9869
2
2월 23
2461
2
10월 20
3607