コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
2862 ビュー

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
アバター
破棄
関連投稿 返信 ビュー 活動
1
12月 23
2916
2
10月 23
6124
3
9月 23
3001
0
5月 23
2967
1
5月 23
2314