Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
2895 Tampilan

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
Buang
Penulis Jawaban Terbai

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
Buang
Post Terkait Replies Tampilan Aktivitas
1
Des 23
2987
2
Okt 23
6173
3
Sep 23
3050
0
Mei 23
3012
1
Mei 23
2361