[ADD]hr_employee_stats_sheet
This commit is contained in:
@@ -0,0 +1 @@
|
||||
from . import hr_employee_stats
|
@@ -0,0 +1,14 @@
|
||||
from odoo import models
|
||||
|
||||
class HrEmployeeStats(models.Model):
|
||||
_inherit = "hr.employee.stats"
|
||||
|
||||
def get_total_hours_domain(self):
|
||||
'''
|
||||
if project_timesheet_holidays is installed, exclude timesheet generated from holidays to calculated total hours
|
||||
'''
|
||||
domain = super().get_total_hours_domain()
|
||||
if self.env.company.leave_timesheet_task_id:
|
||||
domain.append(("task_id", "!=", self.env.company.leave_timesheet_task_id.id),)
|
||||
return domain
|
||||
|
Reference in New Issue
Block a user