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

In odoo 12, I have button in wizard which opens a url in new tab. I want to close the wizard while clicking on same button. Any help would be appreciated. thank you.

아바타
취소
베스트 답변

Hello Salman Hossain,

First install this OCA App.

https://apps.odoo.com/apps/modules/12.0/web_ir_actions_act_multi/

after that write the return statement as follows

action_url = {
'type': 'ir.actions.act_url',
'url': '/website/pages',
'target': 'self',
}
action_close = {'type': 'ir.actions.act_window_close'}

return {
'type': 'ir.actions.act_multi',
'actions': [action_url, action_close]
}

Regards

아바타
취소