Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
1648 Vues

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
Ignorer
Meilleure réponse

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

thank you

Publications associées Réponses Vues Activité
1
juil. 25
2509
2
juil. 25
7950
2
juil. 25
4387
2
juil. 25
4097
2
juin 25
2692