Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
2875 Vistas

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
Descartar
Autor Mejor respuesta

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
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
dic 23
2971
2
oct 23
6153
3
sept 23
3027
0
may 23
2982
1
may 23
2338