Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
2908 Представления

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
3006
2
окт. 23
6201
3
сент. 23
3102
0
мая 23
3043
1
мая 23
2409