Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
15390 Lượt xem

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.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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.

Ảnh đại diện
Huỷ bỏ
Tác giả

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.

Updated my answer.

Hope this helps.

Tác giả

it helps thanks.

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 11 22
2623
0
thg 7 21
6769
0
thg 9 19
5392
1
thg 3 15
7129
1
thg 1 25
1876