İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
1628 Görünümler

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

Avatar
Vazgeç
En İyi Yanı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>


Avatar
Vazgeç
Üretici

thank you

İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Tem 25
2475
2
Tem 25
7923
2
Tem 25
4349
2
Tem 25
4080
2
Haz 25
2674