Skip to Content
मेन्यू
This question has been flagged
1 Reply
2900 Views

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
Discard
Author 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
Discard
Related Posts Replies Views Activity
1
दिस॰ 23
2989
2
अक्तू॰ 23
6181
3
सित॰ 23
3058
0
मई 23
3022
1
मई 23
2378