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.

3

How to open the record form for editing when clicking on tree line?

By
AJ Schrafel Paper Corp
on 6/26/13, 1:39 AM 2,463 views

When you click on a record in a tree view, you switch to the form view of that record in a view mode. You can then click edit, and edit the form.

Can you put a tag in the XML or something to make the form view automatically open in edit mode?

It is not a huge problem to click edit, but it would be faster for user input to get rid of that extra click.

Thanks.

0
Nishant Kashyap
On 7/22/13, 1:52 PM

You can use editable="bottom" in the tree view.

<field name="pf_nominee_id" nolabel="1">
        <tree string=' PF Details' editable="bottom"> 
                <field name='pf_nominee_name'/>
                <field name='pf_nominee_dob'/>
                <field name='pf_nominee_relation'/>
                <field name="pf_nominee_address"/> 
                <field name="pf_nominee_percentage"/>
        </tree>
 </field>

Here pf_nominee_id is the one2many field.

This would allow the user to add items to the tree view wouldn't it? I don't want the user to be able to add records, just edit the records that have already been created.

AJ Schrafel Paper Corp
on 7/22/13, 6:39 PM

Have you used this code in your production ?, this will allow user to edit the one2many field and adding the record is default functionality.I just answer your question that how to avoid the edit form and do the editing in the tree view. Thankyou.

Nishant Kashyap
on 7/23/13, 3:50 AM

The form will probably have more fields than the tree view. This isn't a workable solution in most cases.

Timothy Solomon
on 8/27/13, 6:22 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

0 follower(s)

Stats

Asked: 6/26/13, 1:39 AM
Seen: 2463 times
Last updated: 3/16/15, 8:10 AM