Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
6011 มุมมอง

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?

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
ก.ค. 25
4776
2
ธ.ค. 24
7882
How to ORDER BY? [Odoo 10] แก้ไขแล้ว
2
พ.ย. 24
28675
2
พ.ค. 24
7573
3
มี.ค. 24
7016