Skip to Content
Menu
This question has been flagged
1 Odpoveď
3141 Zobrazenia

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
Zrušiť
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
Zrušiť

Code :-

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

Related Posts Replies Zobrazenia Aktivita
0
sep 23
41
4
mar 23
17004
2
júl 22
3841
0
máj 22
2128
1
nov 21
18509