I want to hide 2 fields in form view if login user and project manager is not same in odoo 12
To pytanie dostało ostrzeżenie
2
Odpowiedzi
6303
Widoki
Hi annie rathod,
in odoo form view you need to hide to fields if login user and project manager is not same then you need to use direct odoo12 fields_view_get() method override.
- Using this method you can find current user.
- And fetch your manager using context.
- This method reference in odoo addons code python files.
Thank you so much Nikhil its Excellent work in tree view.
Please refer given below link
https://stackoverflow.com/questions/17621515/how-to-show-and-hide-input-fields-based-on-radio-button-selection
<li id="my_cart" class="hidden">
Podoba Ci się ta dyskusja? Dołącz do niej!
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
kwi 26
|
7 | ||
|
|
0
mar 26
|
5 | ||
|
|
0
lis 25
|
195 | ||
|
|
2
lis 25
|
1786 | ||
|
|
0
lip 25
|
1966 |