Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
1643 Представления

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
2504
2
июл. 25
7943
2
июл. 25
4384
2
июл. 25
4092
2
июн. 25
2690