コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
1622 ビュー

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
2456
2
7月 25
7912
2
7月 25
4327
2
7月 25
4067
2
6月 25
2664