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
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
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
Code :-
<field name="partner_id" invisible="context.get('active_model')!='student.student'"/>
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj się| Powiązane posty | Odpowiedzi | Widoki | Czynność | |
|---|---|---|---|---|
|
0
wrz 23
|
41 | |||
|
4
mar 23
|
19123 | |||
|
2
lip 22
|
5616 | |||
|
0
maj 22
|
3804 | |||
|
1
lis 21
|
20435 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.