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.

0

edit one2many lines directly in the one2many table

By
Romuald Franck
on 1/7/14, 10:15 AM 2,374 views

Morning, I would like to make an entire column of a one2many editable so that the user do not have to edit the related one2many lines by clicking on each line, one by one, and set the value of one field in the pop up update wizard.

So he should be able to edit directly in the one2many list table. Is it possible, how to achieve that.

1

René Schuster

--René Schuster--
1560
| 5 5 8
Weinheim, Germany
--René Schuster--

Challenge Everything!

René Schuster
On 1/7/14, 10:30 AM

What you want is - as far as I know - not possible.
But: You can achieve something very similar.

<tree string="Your Tree" editable="bottom">

Makes your one2many field editable in the list view. (also available: editable="top")

To make a column uneditable use the readonly tag:

<tree string="Your Tree" editable="top">
    <field name="your_field1" readonly="1"/>
    <field name="your_field2"/>       
    <field name="your_field3" readonly="1"/>
</tree>

This only field2 will be editable.

I would have liked to make only one column editable and if possible for this particular view (when appearing as a one2many). Is it possible? However what you have given work, just, it makes all the column editable.

Romuald Franck
on 1/9/14, 4:44 AM

Updated my answer.

Hope this helps.

René Schuster
on 1/9/14, 5:04 AM

it helps thanks.

Romuald Franck
on 1/15/14, 6:33 PM

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: 1/7/14, 10:15 AM
Seen: 2374 times
Last updated: 3/16/15, 8:10 AM