Daily updates from Odoo
Tuesday, July 19, 2022
5 changes · master
Enhancements to existing features
Spreadsheet formulas for Odoo lists and pivots now apply formats dynamically based on their results, including cleaner integer display without unnecessary decimals. List formulas can also use the correct currency formatting for each user, making exported and manually created spreadsheet reports easier to read and more reliable.
Original PR description
depends on https://github.com/odoo/o-spreadsheet/pull/1460 ========================================= [IMP] spreadsheet: Adapt pivot/list formula to dynamic format…
depends on https://github.com/odoo/o-spreadsheet/pull/1460 ========================================= [IMP] spreadsheet: Adapt pivot/list formula to dynamic format --------------------------------------------------------------------- Following the introduction of dynamic formats in task 2857337, https://github.com/odoo/o-spreadsheet/commit/5ddee35f36939dabf3b9d0ddb9fb658604466efa Odoo specific formulas (i.e. ODOO.LIST, ODOO.PIVOT) can have different formats depending on their evaluation, rather than be hardcoded during the model insertion, which did not work when one would manually create those formulas. (task 2857337) Furthermore, we take this opportunity to differentiate `integer` measures from `float` and `monetary` as the former should not have a format with decimals. Task 2857337 and 2899195 Co-authored-by: Rémi Rahir <rar@odoo.com> [IMP] spreadsheet: Apply currency formatting to lists ---------------------------------------------------------- With the introduction of dynamic format for formulas, we can now apply currency specific formats to list formulas (it required to fetch res.currency data from the server) which will apply a dedicated format for each user depedending on the fetched records. Note that this feature does not apply to pivots as the aggregate can mix up different currencies and we don't have a simple wsay to detect if a single currency was used. For these cases, users can resort to a static currency format. Task 2788853 Co-authored-by: Alexis Lacroix <laa@odoo.com>
Expense attachments are now sent for digitization through a scheduled background process instead of immediately all at once. This helps prevent the system from slowing down or getting stuck when many receipts or documents are scanned at the same time.
Original PR description
Purpose: Send attachments for digitization via triggering the cron so that in case lots of documents are scanned simultaneously, the system does not get stuck. task - 2893608
This update adds support for private bicycle reimbursement as a salary advantage for Belgian employees and adjusts how cycling days are handled in related reimbursements. It helps payroll teams apply the correct reimbursement rules and rates through July 2022.
The Sign app now continues processing valid uploaded documents even when some files cannot be read. Users receive a clearer message identifying which PDF uploads failed, making it easier to correct issues without losing successful uploads.
Original PR description
In sign it is possible to upload multiple files, however if one of them can't be read, an error is raised and it's not possible to know which uploads failed. This commit changes the way file upload is done, in order to allow clearer messages. Single and multiple file upload is done using the same method call and if there are failing PDFs, a message is returned to the client showing which files failed. The choice of returning the message instead of raising an error was intended, as we don't want to prevent further processing of the successful files. task-2697096
Code cleanup and technical improvements
Spreadsheet editing tools have been moved into a dedicated module so they can be reused outside Documents. This prepares future dashboard editing while keeping existing document spreadsheet features available through the new shared foundation.
Original PR description
This commit is a step toward dashboard introduction. In order to allow the edition of the future dashboards without dependency to `documents`, we have to extract the edition features from `documents_spreadsheet` (pivot/list/graph insertion, side panels, ...) So, a new module is created: `spreadsheet_edition` which contains all theses features. `documents_spreadsheet` depends now on this module. The plan for dashboards is to make the dashboard module dependent of this one. Part of task-id 2799682