Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
1 Svar
3174 Visninger

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
Kassér
Bedste svar

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
Kassér

Code :-

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

Related Posts Besvarelser Visninger Aktivitet
0
sep. 23
41
4
mar. 23
17044
2
jul. 22
3874
0
maj 22
2170
1
nov. 21
18543