Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
3136 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona

Code :-

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

Post correlati Risposte Visualizzazioni Attività
0
set 23
41
4
mar 23
17003
2
lug 22
3841
0
mag 22
2124
1
nov 21
18506