Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
1642 Weergaven

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
Annuleer
Beste antwoord

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
Annuleer
Auteur

thank you

Gerelateerde posts Antwoorden Weergaven Activiteit
1
jul. 25
2504
2
jul. 25
7942
2
jul. 25
4382
2
jul. 25
4091
2
jun. 25
2690