Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
2912 Переглядів

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.

Аватар
Відмінити
Автор Найкраща відповідь

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
Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
1
груд. 23
3009
2
жовт. 23
6209
3
вер. 23
3119
0
трав. 23
3050
1
трав. 23
2412