Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
3060 Zobrazení

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šit
Nejlepší odpověď

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šit

Code :-

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

Related Posts Odpovědi Zobrazení Aktivita
0
zář 23
41
4
bře 23
16861
2
čvc 22
3750
0
kvě 22
2043
1
lis 21
18444