Odoo Help


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

Gael Torrecillas
on 3/11/16, 11:09 AM 600 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

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: 3/11/16, 11:09 AM
Seen: 600 times
Last updated: 3/11/16, 1:34 PM