Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
1627 Widoki

I am inheriting the timesheet tree view and want to hide the field project_id for anyone who is not admin.

This is what I have:


< field name="project_id" optional="hide" groups="base.group_system" />


Its not working, I can still see the field with a normal user!!


Thank you

Awatar
Odrzuć
Najlepsza odpowiedź

Hi,

try to set this after inheriting timesheet tree view


<xpath expr="//field[@name='project_id']" position="attributes"> 
               
<attribute name="groups">base.group_system </attribute>
</xpath>


Awatar
Odrzuć
Autor

thank you

Powiązane posty Odpowiedzi Widoki Czynność
1
lip 25
2475
2
lip 25
7923
2
lip 25
4349
2
lip 25
4080
2
cze 25
2674