Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
2887 Widoki

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.

Awatar
Odrzuć
Autor Najlepsza odpowiedź

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
Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
gru 23
2979
2
paź 23
6158
3
wrz 23
3035
0
maj 23
2988
1
maj 23
2338