Odoo Help


Open a wizard when clicking on "save" in a form in edit mode [Odoo 9]

Sebastian Friedrich
on 8/25/16, 3:33 AM 546 views

[Odoo 9]


I am trying to open a wizard when i click on the "Save" Button of a form view (when it is in edit mode). This should appen only in the expense module, when the expense in in state "submit".

So far, i have managed to get an alert when i click on save, but i don't know how to  attach my wizard and how to restrict this action only to "submit" state.

This is the javascript code i used to get the alert:

var popup = document.getElementsByClassName('oe_form_button_save btn btn-primary btn-sm')[0];

popup.addEventListener('click', function()


alert('Hello world');



The wizard works well when i add an extra button to call it.

Can someone help me with this? 

Thank you :)

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 8/25/16, 3:33 AM
Seen: 546 times
Last updated: 8/25/16, 3:45 AM