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

The default of the button is invisible.

Access Right Scenario:
User: The button will show if create_uid is not equal to the partner_id
Manager: This button will always display.

What I did was:

attrs="{'visible':[('groups_ids','=','group_user'),('groups_ids','=','group_manager')]}"

Any idea on how to achieve it in another way?


Avatar
Cancelar
Melhor resposta

Create a boolean computed field whose value is computed based on the conditions you need and use the value of that field to control the visibility of the button.

Avatar
Cancelar
Autor

thanks for this

Publicações relacionadas Respostas Visualizações Atividade
1
jun. 23
3119
0
jul. 23
1994
0
mai. 18
3745
0
jul. 23
2
0
jul. 23
5