Merge pull request #1572 from expsa/bakry_hr

fix
This commit is contained in:
bakry 2024-10-16 12:26:48 +03:00 committed by GitHub
commit d1a20b0b62
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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')])