跳至内容
菜单
此问题已终结
2 回复
4722 查看

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.

形象
丢弃