跳至內容
選單
此問題已被標幟
1 回覆
2907 瀏覽次數

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
3005
2
10月 23
6197
3
9月 23
3098
0
5月 23
3043
1
5月 23
2409