Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

How to open url in current window

By
Maniganda
on 9/27/13, 4:02 AM 4,256 views

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

1
Ali Ravani
On 9/27/13, 6:31 AM

in button function return like this way

    return {
                  'name'     : 'Go to website',
                  'res_model': 'ir.actions.act_url',
                  'type'     : 'ir.actions.act_url',
                  'target'   : 'current',
                  'url'      : url
               }

Thank you for your reply, but the url is opening in new tab

Maniganda
on 10/1/13, 4:26 AM
0
Kabeer
On 6/29/16, 5:12 AM

Try this:

     'target' : 'self'

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

Asked: 9/27/13, 4:02 AM
Seen: 4256 times
Last updated: 6/29/16, 5:12 AM