Skip to Content
Menu
This question has been flagged
1 Atsakyti
1656 Rodiniai

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

Portretas
Atmesti
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>


Portretas
Atmesti
Autorius

thank you

Related Posts Replies Rodiniai Veikla
1
rugp. 25
1926
1
liep. 25
2524
2
liep. 25
7972
2
liep. 25
4409
2
liep. 25
4128