Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
1626 Prikazi

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

Avatar
Opusti
Best Answer

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>


Avatar
Opusti
Avtor

thank you

Related Posts Odgovori Prikazi Aktivnost
1
jul. 25
2469
2
jul. 25
7920
2
jul. 25
4339
2
jul. 25
4075
2
jun. 25
2668