Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
1624 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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>


Ảnh đại diện
Huỷ bỏ
Tác giả

thank you

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 7 25
2456
2
thg 7 25
7912
2
thg 7 25
4327
2
thg 7 25
4067
2
thg 6 25
2664