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.

4

How to direct a Cursor to a specific field when user opens and edits a form of picking list e.g.? Odoo 8

By
Dovydas Bagdonas
on 10/30/15, 7:56 AM 975 views

Hello Forum,

How to direct a Cursor to a specific field when user opens and edits a form of picking list e.g.??

The employees need to open a picking list and press edit it, then they type the number of packaged delivered. But when they start typing using the keyboard, the cursor is situated in first field (partner field) and I would like cursor situated directly in a specific field. Is it possible to do it? I mean to change the location of curson when you open and edit a form. Thank you.

3

zbik

--zbik--
5941
| 6 4 7
Lodz, Poland
--zbik--


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

Example:

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


Thanks a lot Odoo Master :)

Theradome, Dovydas Bagdonas
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

Prakash
on 10/11/16, 6:39 AM

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: 10/30/15, 7:56 AM
Seen: 975 times
Last updated: 10/11/16, 2:59 AM