Tuesday, December 19, 2023
3 changes · master
Resolved issues and error corrections
This fixes an issue where company-wide public holidays could appear as unusual days for employees in other companies. Employees now only see unusual days that belong to the correct company, reducing confusion in attendance and scheduling views.
Original PR description
When we create public holidays, we can create global ones that will apply to all 'Working Hours' of the company. When you create such a public holiday, it is displayed as a an unusual day for all employees of all companies that have a contract. The issue comes from the the fact that we use a sudo to get the contract of the employees and then we call '_get_unusual_day' on the Working Hours of the contract in sudo. So when we catch the global ones (wihtout Working Hours) it takes them from all companies as we are in sudo and it won't apply the record rule. Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
The Planning app's "Shifts in Conflict" filter now behaves correctly beyond schedule-style views. List and Kanban views show only conflicting shifts, while planning dialogs avoid carrying over this filter so users can choose shifts normally.
Original PR description
In a previous commit, we customized the filter "Shifts in Conflict" in Gantt and Calendar views to be able to still see other shifts. Makes sense: as the idea is to plan them conveniently, you want to see the rest of the schedule. So, rather than having a domain filtering out the non-conflicting shifts, we just display them with a lower opacity. The issue is that, in other views, the filter has no effect. With this commit, we filter out the non-conflicting shifts in List and Kanban views. task-3555519
The Helpdesk Reporting section now uses the correct plural title, “Tickets Analysis,” instead of “Ticket Analysis.” This small wording correction makes the report label clearer and more consistent for users.
Original PR description
Before this PR, the title for the Tickets Analysis section within Helpdesk Reporting was 'Ticket Analysis'. In this PR, It has been Fixes to 'Tickets Analysis'. task-3475975