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

I need to make is_closed field of a task  editable from the form view_task_from2

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

Hi,

To make an existing field in the model editable, you can inherit the corresponding view of that model in which the field exists in your custom module, and Xpath the field by adding the position as attributes, and making read-only as false

eg:

<field name="is_closed" position="attributes">
                    <attribute name="readonly">0</attribute>
 </field>


Hope it helps

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

Hi,
You can make a field editable using the studio application or from the code.

* Open the form view containing the field
* Enable studio
* select the field and change the readonly to False

Same can be done from code side also, just inherit the view and set readonly as False

Inherit And Change Existing Field Properties In Odoo


Thanks

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 5 25
2806
1
thg 5 22
1823
0
thg 5 21
2699
1
thg 9 18
2656
0
thg 3 15
3510