Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
2916 Prikazi

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
Opusti
Avtor 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
Opusti
Related Posts Odgovori Prikazi Aktivnost
1
dec. 23
3015
2
okt. 23
6216
3
sep. 23
3120
0
maj 23
3056
1
maj 23
2416