Odoo Help

0

How do you fix field focus?

By
Trish Calvy
on 5/23/16, 4:41 PM 1,045 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!

1

Jainesh Shah

--Jainesh Shah--
1130
| 4 2 5
Ahmedabad, India
--Jainesh Shah--


Jainesh Shah
On 1/2/18, 12:56 AM
Hello Michael G,

If you want to set default focus for Purchases>Vendors>Create 
You need to inherit vendor form view and change default focus attribute for the name or another field you want.

Make sure you have only one default_foucs in form view.

Hope this will help you.
0
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.

Register

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)

Stats

Asked: 5/23/16, 4:41 PM
Seen: 1045 times
Last updated: 1/2/18, 12:56 AM