mirror of
https://github.com/bringout/oca-ocb-hr.git
synced 2026-04-26 23:12:05 +02:00
19.0 vanilla
This commit is contained in:
parent
a1137a1456
commit
e1d89e11e3
2789 changed files with 1093187 additions and 605897 deletions
|
|
@ -0,0 +1,16 @@
|
|||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from odoo.addons.hr_attendance.controllers.main import HrAttendance
|
||||
from odoo import api, models
|
||||
|
||||
|
||||
class IrHttp(models.AbstractModel):
|
||||
_inherit = 'ir.http'
|
||||
|
||||
@api.model
|
||||
def lazy_session_info(self):
|
||||
res = super().lazy_session_info()
|
||||
if self.env.user and self.env.user.employee_id:
|
||||
employee = self.env.user.employee_id
|
||||
res['attendance_user_data'] = HrAttendance._get_user_attendance_data(employee)
|
||||
return res
|
||||
Loading…
Add table
Add a link
Reference in a new issue