Hi everyone,
i need to add a button in an xml view wich call a javascript function
No problem to add the button, but i'm not able to add the js function.
Is it possible to have a complete example code to add a js function in odoo, and how link this function to the onclick event of the button.
Thank you by advance
Vincent
please check form controller which is dealing create, edit buttons events.
addons/web/static/src/js/views/form/form_controller.js