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

question: Are readonly or invisible attributes possible in group tag? like below example? if not how i can make non editable all fields in a group? thanks

example:

group attrs="{'readonly' : [('state' , '!=' , 'done')]}"


頭像
捨棄
最佳答案

Hi, The invisible attribute is working on group tag as below:

odoo/purchase_views.xml at 15.0 · odoo/odoo (github.com)

But the readonly is not working and you have to add it on field tag.


頭像
捨棄
作者 最佳答案

Great answer mate. 

thank you.

頭像
捨棄