コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
4723 ビュー

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.

アバター
破棄