Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
1620 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona
Autore

thank you

Post correlati Risposte Visualizzazioni Attività
1
lug 25
2454
2
lug 25
7909
2
lug 25
4324
2
lug 25
4067
2
giu 25
2664