Hi everyone,
I want to have a button on one of my form views that triggers a function in the backend. This function has a couple of parameters, and I want these parameters to be passed live by the user, when clicking the button.
Is there a way to implement this on Odoo? The perfect scenario would be:
- the user clicks the "Trigger Function" button
- a prompt opens up with two fields (can be a TransientModel, although I never want the user input to be stored in the database, so ideally it should be passed directly to the backend)
- the function runs with these two parameters, and the output of the function is used to fill a field in the original record
- the original form view stays open
Any ideas would be greatly appreciated