Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
3131 Visualizações

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
Cancelar
Melhor resposta

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
Cancelar

Code :-

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

Publicações relacionadas Respostas Visualizações Atividade
0
set. 23
41
4
mar. 23
16996
2
jul. 22
3837
0
mai. 22
2122
1
nov. 21
18503