Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
4727 Lượt xem

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')]}"


Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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.


Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

Great answer mate. 

thank you.

Ảnh đại diện
Huỷ bỏ