Skip to Content
मेन्यू
This question has been flagged
1 Reply
3023 Views

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
Discard
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
Discard

Code :-

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

Related Posts Replies Views Activity
0
सित॰ 23
41
4
मार्च 23
16847
2
जुल॰ 22
3729
0
मई 22
2026
1
नव॰ 21
18420