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.

0

How do you fix field focus?

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

Odoo v9.0c

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

However...

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!

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

use this:

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

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