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
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
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
Code :-
<field name="partner_id" invisible="context.get('active_model')!='student.student'"/>
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng ký| 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
|
19113 | |||
|
2
thg 7 22
|
5605 | |||
|
0
thg 5 22
|
3797 | |||
|
1
thg 11 21
|
20423 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.