Odoo Help

5
1 Answer
7
Avatar

Zbik

--Zbik--
7227
| 6 5 7
Lodz, Poland
--Zbik--


Zbik
10/30/15, 10:22 AM

You need to change the view definition and add an attribute default_focus: set to 1 to put the focus (cursor position) on this field when the form is first opened. There can only be one field within a view having this attribute set to 1.

Example:

<field name="name" default_focus=”1”/>


5 Comments
Theradome, Dovydas Bagdonas, UK
10/30/15, 11:14 AM

Thanks a lot Odoo Master :)

Prakash
10/11/16, 6:39 AM

@Zbik I would like to add default_focus inside the field in tree editable="bottom". But it not working, How to apply default_focus in tree editable="bottom"? Thanks

Virali
1/3/18, 5:53 AM

I have try this code for wizard char field but it is not working for me, Can you please give me solution for this?

SunArc Technologies, Pawan Sharma
6/27/18, 5:27 AM

Hello @Zbik, I have facing same problem as @prakash. For wizard char field it is not working for me. Can you provide solution for this problem?

Alexis de Lattre
12/17/18, 5:22 PM

FYI, I opened a bug report about the problem with default_focus not working in wizards https://github.com/odoo/odoo/issues/29589

Ask a Question
Keep Informed
1 follower(s)
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