Odoo Help

On 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.


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

Thanks a lot Odoo Master :)

Theradome, Dovydas Bagdonas, UK
on 10/30/15, 11:14 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

on 10/11/16, 6:39 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?

on 1/3/18, 5:53 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?

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

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

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

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)


Asked: 10/30/15, 7:56 AM
Seen: 3940 times
Last updated: 12/27/17, 2:17 AM