跳至內容
選單
此問題已被標幟
2 回覆
1829 瀏覽次數

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

頭像
捨棄
最佳答案

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

頭像
捨棄
最佳答案

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

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
2
5月 25
2781
1
5月 22
1814
0
5月 21
2698
1
9月 18
2636
0
3月 15
3504