Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
2383 มุมมอง

Need to generate report for number of times user logged into odoo based on monthwise.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

I am not sure and I don't know that Odoo stores the logged info in database.

My hint is that you override the controller 

@http.route('/web/login', type='http', auth="none")
def web_login(self, redirect=None, **kw):
   # ...................

Inside this controller, store the logged info to database with uid, date etc . 

Then you can create report from it


อวตาร
ละทิ้ง
ผู้เขียน

Thanks. I managed with audit_logs module and generated report by fetching data from this module. Anyway i will try your method.