Odoo Help

Welcome!

This community 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.

1

Block Escape Key to prevent close the wizard

By
Francisco Castro
on 5/21/14, 5:49 AM 1,210 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? 

 

2

Prakash

--Prakash--
3173
| 5 4 7
Bikaner, India
--Prakash--

OpenERP Devloper at SunARC Technology

Prakash
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"


 

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 5/21/14, 5:49 AM
Seen: 1210 times
Last updated: 3/16/15, 8:10 AM