Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
1652 Visualizações

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
Cancelar
Melhor resposta

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
Cancelar
Autor

thank you

Publicações relacionadas Respostas Visualizações Atividade
1
jul. 25
2511
2
jul. 25
7955
2
jul. 25
4395
2
jul. 25
4104
2
jun. 25
2699