Odoo Help


Block Escape Key to prevent close the wizard

Francisco Castro
on 5/21/14, 5:49 AM 1,961 views

HI guys

I want to prevent close a wizard when the user press the Escape Key

Do you have an ideia?

Best Regards


How can I call the javascript on he python file and where can I put the javascript function?

Sorry I dont work with javascript and I dont know how to do it to work.

Can you explain a little bit more? 





| 5 4 7
Bikaner, India

OpenERP Developer at SunARC Technology

On 5/21/14, 7:17 AM

In custom module using java script  you can acheive this functionality.

KeyCode for Escape Key is 27

Reload code in javascript

instance.web.Reload(parent, action)

Refer the Apps Module "web_keyboard_shortcut"


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: 5/21/14, 5:49 AM
Seen: 1961 times
Last updated: 3/16/15, 8:10 AM