Skip to Content
Menu
This question has been flagged
1 Atsakyti
3176 Rodiniai

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

 


Portretas
Atmesti
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

Portretas
Atmesti

Code :-

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

Related Posts Replies Rodiniai Veikla
0
rugs. 23
41
4
kov. 23
17044
2
liep. 22
3875
0
geg. 22
2172
1
lapkr. 21
18545