Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
4724 มุมมอง

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.

อวตาร
ละทิ้ง