Wednesday, May 18, 2022
5 changes · master
Resolved issues and error corrections
Leave validation now updates only the planning shifts that are actually affected by the approved time off. This reduces unnecessary recalculations and makes Time Off approvals faster, especially in databases with many installed apps.
Original PR description
Before this commit, when a leave is validated, the allocated hours and the working days fields for the shifts in which the planned dates have the leave in the interval have to be recomputed. However,…
Before this commit, when a leave is validated, the allocated hours and the working days fields for the shifts in which the planned dates have the leave in the interval have to be recomputed. However, the domain processed includes too much shifts and so the recompute will take more time than expected. This commit fixes the issue by ensuring the domain processed includes only the shifts impacting by the leaves added or updated. This commit also improves the performances to slow the less as possible the validation of leaves in Time Off app. Performance improvements: ======================== The time measured, to show if the fix improves the performance, is made when the user valids a leave in the Time Off app. Also, this measure is done in a db with just the demo data installed. In a db with all apps: - without the fix: it took 1440 ms - with the fix: it takes 476 ms In a db with just `planning_holidays` module installed: - without the fix: it took 310 ms - with the fix: it takes 80 ms Related PR: #24619 Co-authored-by: Kevin Baptiste <kba@odoo.com>
The Dutch Intrastat declaration now supports the new transaction codes and file layout required from January 2021. This helps Dutch companies submit compliant trade declarations while preserving older codes for historic invoices and earlier reporting periods.
Original PR description
Some changes to are required to accommodate the new format of the dutch intrastat declaration. The changes are discussed [here](https://www.cbs.nl/en-gb/participants-survey/overzicht/businesses/onderzoek/international-trade-in-goods). New codes are required, and a new specification for the declaration file requires that these new codes appear in a different position in the file (while the old ones are no longer used). As such, changes have been made to prevent the old codes from being used from January 2021 onward, and prevent the new codes from being used before January 2021. task: 2635472
The Documents Project action to create a task is now hidden once a document is already linked to a task, reducing duplicate task creation and user confusion. The fix also prevents access errors by assigning the current user to newly created private tasks.
Original PR description
before this commit, if document is already linked to task 'Create a task' action also appeared. after this commit, 'Create a task ' action hide after creating task on document. Task-2818646
Adding a document through the “add a link” action now correctly keeps it connected to the related task or record, so users can see the right context and name. Demo data was also adjusted so timesheet defaults behave as expected during testing and demonstrations.
Original PR description
…link button Currently task value was not displayed in documents while adding documents through add a link button. so in this commit task value is displayed on generating documents through add a link button. task-2790019
Spreadsheet views now correctly preserve the sorting users applied to embedded document lists when data is loaded from the server. This prevents confusing changes in row order and helps users rely on spreadsheet reports showing information in the expected sequence.
Original PR description
Since f55a54eb, the row sorting from a list is no longer applied when fetching the data from the server. The issue lies in a faulty conversion of payload from the old rpc to the orm.searchRead API. Task 2832461