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

Hello,


I am trying to develop, for Odoo v16, a way to make a form view read only based on condition.

I know how to access, in js/owl, archInfo -> xmlDoc attributes so that if I write readonly="[('state','=','draft')]" I can extract the value of readonly.

But I don't know how to evaluate that expression and I did't found the place where it is evaluated in Odoo.


Can anyone tell me where is Odoo evaluating the domain or how is it done to get the result of [('state','=','draft')] or any other domain?


Thank you.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 8 15
3310
2
thg 12 24
5317
selenium dont work Đã xử lý
1
thg 5 24
2702
2
thg 4 24
4312
0
thg 4 24
958