Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
1 Svar
1653 Visninger

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
Kassér
Bedste svar

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
Kassér
Forfatter

thank you

Related Posts Besvarelser Visninger Aktivitet
1
jul. 25
2515
2
jul. 25
7961
2
jul. 25
4399
2
jul. 25
4111
2
jun. 25
2700