Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
2871 Visualizzazioni

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
Abbandona
Autore Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
dic 23
2964
2
ott 23
6146
3
set 23
3022
0
mag 23
2980
1
mag 23
2333