Skip to Content
Menu
This question has been flagged
2 Replies
10391 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!

Avatar
Discard
Best Answer
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.
Avatar
Discard

Hello Jainesh, default_focus=”1” functionality not working in wizard for me. Can you give solution for this problem? Thanks

Best Answer

use this:

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

Avatar
Discard