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

I want to open act_url in pop-up instate of new tab.


return {

'type': 'ir.actions.act_url',

'url': url,

'target': 'new'

}


아바타
취소
베스트 답변

Normally all URL opens up in a new tab. If you want to open it in the popup, you would have to create modal window (using web qweb and JS) to display the content of the URL.

The simple way to do this without web development,  create a wizard and in the XML use "iframe" tag to show the content of the URL.

<record id="my_wiz_view" model="ir.ui.view">
<field name="name">my.wiz.popup.view</field>
<field name="model">wiz.popup</field>
<field name="arch" type="xml">
<form>
<iframe src="https://www.w3schools.com"></iframe>
</form>
</field>
</record>


아바타
취소

Please can you explain to me how to use it with qweb and js? I tried iframe and didn't work

베스트 답변

Hello. Did you find anny solution on this?

아바타
취소
관련 게시물 답글 화면 활동
2
7월 25
4870
2
12월 24
7928
2
11월 24
28748
2
5월 24
7608
3
3월 24
7067