تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
1641 أدوات العرض

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
يوليو 25
2504
2
يوليو 25
7942
2
يوليو 25
4382
2
يوليو 25
4091
2
يونيو 25
2690