跳至內容
選單
此問題已被標幟
1 回覆
1625 瀏覽次數

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
2466
2
7月 25
7918
2
7月 25
4337
2
7月 25
4072
2
6月 25
2668