Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
1638 Переглядів

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 Відповіді Переглядів Дія
1
лип. 25
2500
2
лип. 25
7940
2
лип. 25
4380
2
лип. 25
4091
2
черв. 25
2688