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

Hi,

How to make a field readonly based on some condition? For instance i want to make fields readonly on form load based on some values from another table.

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

Hello Binyam Assefa ,

 To make readonly field based on condition you can use "attrs" attribute in field tag as follows :

 <field name="field_name" attrs="{'readonly' : [domain]}"/>

 Hope this will work for you.

Thanks!

Ảnh đại diện
Huỷ bỏ
Tác giả

Thanks Jainesh Shah,

So i have to declare fields that contains some calculated values from another domains to use it here in the current view.

Bài viết liên quan Trả lời Lượt xem Hoạt động
3
thg 12 23
90985
3
thg 9 21
5094
1
thg 9 15
8942
4
thg 4 25
5272
3
thg 7 23
5717