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

Hi everyone,

Say we have a sale team with access to a view form with a custom button in it.

If one of them login with his own odoo account and click on that button, is there a method to log that it is him that click on that button, a this time, etc ?


Thank you for your help.

Avatar
Cancelar
Autor Melhor resposta

Hi everyone,

I found a way.

in the action definition triggered by the button. You can access current user like this:

def test_identifier(self):
_logger.error("TEST LOG USER ID" + self.env.user.name)

I hope this will help
Avatar
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
1
dez. 23
2987
2
out. 23
6178
3
set. 23
3053
0
mai. 23
3014
1
mai. 23
2368