Skip to Content
Menu
This question has been flagged
2 Replies
6010 Rodiniai

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


return {

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

'url': url,

'target': 'new'

}


Portretas
Atmesti
Best Answer

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>


Portretas
Atmesti

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

Best Answer

Hello. Did you find anny solution on this?

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
2
liep. 25
4776
2
gruod. 24
7882
2
lapkr. 24
28675
2
geg. 24
7573
3
kov. 24
7016