Odoo Help


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.


[9.0][POS] focus searchbar after adding a new order

Gael Torrecillas
on 3/11/16, 11:09 AM 248 views


I want focus searchbar after adding a new order (+) 

so I change this function :

 renderElement: function(){ 
var self = this;
        self.order_click_handler(event,$(this)); });
        self.neworder_click_handler(event,$(this)); });
        self.deleteorder_click_handler(event,$(this)); });
//add this part
    this.$('.searchbox input').focus();

but, I suppose that  this.$('.searchbox input') is indefined in chrome

please, help me

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)


Asked: 3/11/16, 11:09 AM
Seen: 248 times
Last updated: 3/11/16, 1:34 PM