Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
1 Svar
2827 Visninger

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
Kassér
Forfatter Bedste svar

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
Kassér
Related Posts Besvarelser Visninger Aktivitet
1
dec. 23
2855
2
okt. 23
6093
3
sep. 23
2963
0
maj 23
2940
1
maj 23
2291