This commit is contained in:
Bakry 2024-10-16 11:55:40 +03:00
parent cf232650cc
commit 67f3714921
2 changed files with 2 additions and 2 deletions

View File

@ -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')])

View File

@ -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')])