Odoo Help


How do you fix field focus?

Michael G
on 5/23/16, 4:41 PM 736 views

Odoo v9.0c

If you go Purchases>Vendors>Create Button - Focus is not on the name field.


If you go Purchases>Vendors>Click on a partner>Create Button - Focus is now on the Name field.

The same paths for Customers & Products where the focus is different.

default_focus="1" is set.

How do you get default_focus to work from Purchases>Vendors>Create path?

Thank You!

Isuru Jayathissa
On 10/23/16, 1:26 PM

use this:

$('div.ButtonClassName input').focus(); 

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/23/16, 4:41 PM
Seen: 736 times
Last updated: 10/23/16, 1:26 PM