Skip to Content
Menu
This question has been flagged
1 Atsakyti
2886 Rodiniai

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.

Portretas
Atmesti
Autorius 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
Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
1
gruod. 23
2978
2
spal. 23
6158
3
rugs. 23
3033
0
geg. 23
2986
1
geg. 23
2338