跳至内容
菜单
此问题已终结
1 回复
1645 查看

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

形象
丢弃
最佳答案

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>


形象
丢弃
编写者

thank you

相关帖文 回复 查看 活动
1
7月 25
2506
2
7月 25
7945
2
7月 25
4384
2
7月 25
4093
2
6月 25
2691