Tuesday, May 3, 2022
4 changes · master
Resolved issues and error corrections
Planning shifts now update more efficiently when employee leave is created, changed, or removed. This reduces delays during leave validation by avoiding unnecessary recalculations and dramatically lowering the amount of database work required.
Original PR description
Before this commit, the shifts are recomputed when a leave is added in the planned dates of those shifts and the compute of working_days_count is too costly. This method slows down the validation of a leave or the creation/suppression of a leave too. This commit improves the performance of this compute to take less time as possible to recompute the working_days_count field of those shifts impacted by a changes on a leave in their planned dates. Also, this commit checks the `vals` when a leave is updated to only recompute the `working_days_count` and the `allocated_hours` fields of shifts when the `resource_id`, `start_datetime` and `end_datetime` fields are changed. Without the fix, the query counter is equal to 395 queries for `_recompute_shifts_in_leave_periods` method and with the fix, only 5 queries are counted. Related PR: #24619
This update improves day-to-day usability across field service-related workflows by setting new helpdesk tickets to low priority by default, improving placement of the lot/serial number button, and keeping planning sample data visible when switching views. It also makes grouped timesheet grids more consistent by showing empty rows where expected.
Original PR description
* helpdesk, industry_fsm_stock, planning In helpdesk, - set low priority as default on ticket creation time - removed fa-pencil icon when sample data is enable In industry_fsm_stock, - aligned lot/SN button to bottom right corner In planning, - fixed sample data visibility on switch view task-2720976 closes: https://github.com/odoo/enterprise/pull/23884
This update fixes rental-related test failures that occurred on weekends because pickup restriction settings were not reset correctly. It also prevents potential errors caused by missing resources, improving reliability for the online rental flow.
Original PR description
Prior to this PR, company settings related to pickup restrictions for renting items were not reset properly, meaning the tours would fail systematically on week-ends. Also fixes two possible tracebacks using undefined resources.
This fixes how sales order references and narration text are shown on Colombian electronic document notes. The change prevents overly long values from causing layout issues in generated PDFs, making documents clearer and more reliable for customers and tax-related processing.
Original PR description
Currently, The value `invoice.invoice_origin` in notas 8 and 10, is creating issues on the PDF created by Carvajal when it has several SO's related, the space in the PDF designated for this value basically fits just one SO. In this commit, we add the first SO from `invoice.invoice_origin` in notas 8 and 10 and notas 3 narration has a max length of 500 characters so after the concatenation of `invoice.narration` and `invoice.invoice_origin` we trim at 500 characters. TaskID - 2679475 PR - #26306