Skip to Content
Menu
This question has been flagged
1 Odpoveď
1650 Zobrazenia

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
Zrušiť
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
Zrušiť
Autor

thank you

Related Posts Replies Zobrazenia Aktivita
1
júl 25
2509
2
júl 25
7950
2
júl 25
4389
2
júl 25
4099
2
jún 25
2695