Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
1646 Zobrazení

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šit
Nejlepší odpověď

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šit
Autor

thank you

Related Posts Odpovědi Zobrazení Aktivita
1
čvc 25
2507
2
čvc 25
7946
2
čvc 25
4384
2
čvc 25
4093
2
čvn 25
2691