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

Hi, how can I make a field invisible if it is in another model, and the field I am looking at is in my model

 


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

Hello pavel

You can set the invisible attribute based on context values
You can refer below code
I hope it may help you

Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari

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

Code :-

<field name="partner_id" invisible="context.get('active_model')!='student.student'"/>

Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 9 23
41
4
thg 3 23
17027
2
thg 7 22
3857
0
thg 5 22
2139
1
thg 11 21
18527