I need to open an url on click of button in openerp, if i use ir_actions.act_url i am able to load the url but its opening in new tab, how to open in current window
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
3
Replies
27308
Views
in button function return like this way
return { 'name' : 'Go to website', 'res_model': 'ir.actions.act_url', 'type' : 'ir.actions.act_url', 'target' : 'self', 'url' : url }
Try this:
'target' : 'self'
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
0
Mar 17
|
3039 | ||
|
0
Mar 15
|
3256 | ||
|
5
Sep 24
|
1236 | ||
|
1
Jan 24
|
495 | ||
|
0
Nov 24
|
87 |
See: https://www.youtube.com/watch?v=7jbaJSZLL8A