fix
This commit is contained in:
parent
cf232650cc
commit
67f3714921
|
|
@ -46,7 +46,7 @@ class HrAttendanceTransactions(models.Model):
|
|||
rec.additional_hours = rec.office_hours - rec.plan_hours
|
||||
# rec.carried_hours = rec.office_hours - rec.plan_hours
|
||||
|
||||
#@api.depends('employee_id')
|
||||
@api.depends('employee_id')
|
||||
def get_hours(self):
|
||||
module = self.env['ir.module.module'].sudo()
|
||||
official_mission_module = module.search([('state', '=', 'installed'), ('name', '=', 'exp_official_mission')])
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ class HrClearanceForm(models.Model):
|
|||
|
||||
|
||||
def check_custody(self):
|
||||
# Check if exp_custody_petty_cash module is installed
|
||||
# Check if module is installed
|
||||
Module = self.env['ir.module.module'].sudo()
|
||||
emp_custody = Module.search([('state', '=', 'installed'), ('name', '=', 'exp_employee_custody')])
|
||||
petty_cash_modules = Module.search([('state', '=', 'installed'), ('name', '=', 'hr_expense_petty_cash')])
|
||||
|
|
|
|||
Loading…
Reference in New Issue