Skip to Content
Menu
This question has been flagged
3 Replies
27308 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

Avatar
Discard
Best Answer

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
               }
Avatar
Discard
Best Answer

Try this:

     'target' : 'self'

Avatar
Discard
Related Posts Replies Views Activity
0
Mar 17
3039
0
Mar 15
3256
5
Sep 24
1236
1
Jan 24
495
0
Nov 24
87