Wednesday, April 30, 2025
2 changes · saas-17.4
Resolved issues and error corrections
Users without permission to create contacts can now load HR Attendance sample data without running into an error. This prevents setup interruptions and makes it easier for restricted users to explore or test the attendance app.
Original PR description
Currently, an error occurs when a user without contact creation access tries to load the sample data in hr_attendance. Steps to produce: 1) Install the hr and hr_attendance modules. 2) Create a user…
Currently, an error occurs when a user without contact creation access tries to load the sample data in hr_attendance. Steps to produce: 1) Install the hr and hr_attendance modules. 2) Create a user without contact creation access. 3) Log in with the newly created user. 4) Open the hr_attendance module. 5) Attempt to load the sample data. 6) An error occurs. ValueError ParseError(`while parsing /home/odoo/src/odoo/saas-18.1/addons/hr/data/scenarios /hr_scenario.xml:79, somewhere inside`) This error occurs when a user tries to load sample data in the hr_attendance module without having contact creation access due to security restrictions. This commit resolves the issue by using `sudo()` to grant the necessary access to the user while loading data in `hr.attendance`. [1] -https://github.com/odoo/odoo/blob/b286d47554f6eec940e1d69e9400cb2f359031b6/addons/hr/data/scenarios/hr_scenario.xml#L79-L93 sentry - 6152261332 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Archiving employees linked to planning slots now works without triggering an error. This prevents interruptions during employee record maintenance and keeps planning data handling reliable.
Original PR description
ISSUE: when trying to archive employees who are connected to planning slots an exception is raised REPRODUCE: - Select all employees - try to Archive - the `strptime` method needs the argument to be string but the values dict has the dates values as datetime objects. so, convert the values using `str` Task: 4734621