This question has been flagged
1 Reply
2559 Views

Hello Guys,

In Form View i had create one button <button name="show_myapp" string="Show My Application" type="object" icon="gtk-go-forward"/>

Once i click on this button it call one function named as "show_myapp", through this function i want to  open "http://127.0.0.1:8080/myApp"  this link in new tab of Browser.

How can i do that.

Avatar
Discard
Best Answer

Hello,

In button method return like below,

return {

'name' : 'Go to website',

'res_model': 'ir.actions.act_url',

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

'target' : 'current',

'url' : url

}

I think this will help you.

Avatar
Discard
Author

Thanks For Helping Solanki