Create a button that redirect to flask application

I wanted to know if it was possible to create a button that redirects me to the flask application with arguments that depend on the current record.

Thanks in advance.

You can create a URL action.

If you want a button in the form or tree view you can use a button_action. Either using this button_action or by creating a wizard that returns a URL Action you can probably make it dynamic.

Another, simpler, option is to use the URL widget and a Function field. Just like the google_maps module does.

1 Like

I will recomend using the URL widget with a function field. It will be easier and the arguments can be included depending on the record.

1 Like

Thanks @albert and @pokoli. I will try the URL widget. And I didn’t know the URL Action, it’s good to know it exists.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.