Wednesday, April 29, 2026
4 changes · 17.0
Enhancements to existing features
This update adjusts payroll deductions for employees aged 60 or older. It ensures NSSF contributions stop when an employee reaches 60, aligning with Kenyan regulations and accounting for the timing of the change (starting in the following month). A new test has been added to verify this functionality.
Original PR description
[IMP] l10n_ke_payroll: stop NSSF deductions after 60
When the user is creating a payslip and if the age of employee is >=60 the NSSF deductions must stop
(If the 60 years is finished in 10th of March -> it will stop in April (deduction stop starts from next month))
Test:
Unit test is written to check stopping NSSF deductions with dynamic birthday.
task - 6074658Resolved issues and error corrections
This update corrects a technical issue that caused problems with voice message tests. Specifically, the system was resolving promises prematurely, leading to potential errors. This fix ensures that asynchronous operations complete before promises are resolved, improving test stability and reliability.
Original PR description
Before this commit, voice message tests don't wait until the voice player is drawn before resolving the corresponding promise. This may lead to race conditions. This commit fixes the issue by properly `await`ing the completion of the asynchronous code before resolving the promise. Related runbot error: https://runbot.odoo.com/odoo/error/163783
This update fixes an issue where users lacking the necessary permissions encountered a permission error when trying to access their profile information. The fix involves adding the 'employee_country_code' field to a list of accessible fields, ensuring all users can view their profile details. This improves usability and prevents errors for a wider range of users.
Original PR description
Issue: - When a user without access rights tries to view their profile, a permission error is raised. - Issue PR: https://github.com/odoo/odoo/pull/254162 Fix: - Added `employee_country_code` to SELF_READABLE_FIELDS in `res.users`. --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This update resolves an issue where a duplicate XML ID was present in the `l10n_ke_he_payroll` module's configuration for the `hr.salary.rule` model. This duplication caused potential errors and inconsistencies in payroll calculations. The fix ensures data integrity and accurate processing of employee salary rules.
Original PR description
This commit avoids duplicated xml_id for `hr.salary.rule` model. In commit https://github.com/odoo/enterprise/commit/a7d51fa2ee8b1af0e807b3e9cb6e313d8885ff67, key `l10n_ke_employees_salary_pension_contribution` (sequence 72) was deleted and added key `l10n_ke_employees_salary_pension_contribution` (sequence 35). In commit https://github.com/odoo/enterprise/commit/c23243be9ca833acea7089defadbe0eaf869051d, key `l10n_ke_employees_salary_pension_contribution` (sequence 72) was added again.