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
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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'"/>
相关帖文 | 回复 | 查看 | 活动 | |
---|---|---|---|---|
|
0
9月 23
|
41 | ||
|
4
3月 23
|
16925 | ||
|
2
7月 22
|
3778 | ||
|
0
5月 22
|
2068 | ||
|
1
11月 21
|
18470 |