Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
1666 มุมมอง

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

Related Posts ตอบกลับ มุมมอง กิจกรรม
3
ก.ย. 25
2643
0
ส.ค. 25
193
1
ส.ค. 25
2151
2
ก.ค. 25
8053
2
ก.ค. 25
4519