Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
3112 Prikazi

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

 


Avatar
Opusti
Best Answer

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

Avatar
Opusti

Code :-

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

Related Posts Odgovori Prikazi Aktivnost
0
sep. 23
41
4
mar. 23
16978
2
jul. 22
3807
0
maj 22
2105
1
nov. 21
18481