fkantelberg 988d228830 [FIX] hr_holidays: fix read access error when a normal user writes on leave
Description of the issue:
When a user without rights on time off writes to a previously created hr.leave an access
error is raised because of reading employee_ids. This happens becausethe field is
restricted to the group hr_holidays.group_hr_holidays_user and it's used in _check_date.
To prevent this all_employee_ids should be used because of the compute_sudo set.

Current behavior before PR:
Access error on save

Desired behavior after PR is merged:
No access error on save

closes odoo/odoo#149308

X-original-commit: 10d3d0b43fbb336d823cec9e68b68651298678cd
Signed-off-by: Sofie Gvaladze (sgv) <sgv@odoo.com>
2024-01-19 11:40:35 +00:00
2024-01-16 09:55:28 +00:00
2024-01-16 22:40:02 +00:00
…
…
…
…
…
…

Build Status Tech Doc Help Nightly Builds

Odoo

Odoo is a suite of web based open source business apps.

The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...

Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.

Getting started with Odoo

For a standard installation please follow the Setup instructions from the documentation.

To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials

S
Description
No description provided
Readme LGPL-3.0
3.4 GiB
Languages
Python 49.6%
JavaScript 47.8%
SCSS 2%
CSS 0.3%
HTML 0.2%