Skip to Content
Menú
This question has been flagged
1 Respondre
2869 Vistes

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 Best Answer

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
Related Posts Respostes Vistes Activitat
1
de des. 23
2963
2
d’oct. 23
6145
3
de set. 23
3022
0
de maig 23
2980
1
de maig 23
2333