Tuesday, September 23, 2025
1 change · saas-18.1
Resolved issues and error corrections
Reactivating an archived company no longer triggers an unexpected error in the timesheet area. This helps administrators manage company records more reliably without unnecessary log errors or interruptions.
Original PR description
Currently a `KeyError` appears when the user unarchives the company. Error: `Keyerror: 2` Steps to reproduce above error :- - Install `hr_timesheet` module. - Settings > Users & Companies > Companies. create a company. - Archive the company, now Unarchive the company. - The error appears in the log. The error occurs because on urachiving the company, the new company was not found. This commit fixes the error, if company does not exist, it still returns an empty dictionary. sentry-6251348500