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'"/>
Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!
Aanmelden| Gerelateerde posts | Antwoorden | Weergaven | Activiteit | |
|---|---|---|---|---|
|
0
sep. 23
|
41 | |||
|
4
mrt. 23
|
17862 | |||
|
2
jul. 22
|
4581 | |||
|
0
mei 22
|
2919 | |||
|
1
nov. 21
|
19275 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.