Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
1654 Ansichten

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
Verwerfen
Beste Antwort

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
Verwerfen
Autor

thank you

Verknüpfte Beiträge Antworten Ansichten Aktivität
1
Juli 25
2517
2
Juli 25
7961
2
Juli 25
4401
2
Juli 25
4112
2
Juni 25
2703