I want to open act_url in pop-up instate of new tab.
return {
'type': 'ir.actions.act_url',
'url': url,
'target': 'new'
}
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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?
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
How to ORDER BY? [Odoo 10]
Solved
|
|
2
Nov 24
|
25099 | |
|
2
May 24
|
5524 | ||
|
3
Mar 24
|
4967 | ||
|
0
Mar 24
|
264 | ||
|
3
Feb 24
|
11421 |