Monday, September 4, 2023
7 changes · master
Enhancements to existing features
Odoo now sends documents for OCR extraction immediately instead of waiting for background jobs, giving users clearer and faster feedback when uploading invoices, expenses, and recruitment documents. Performance improvements and removing an extra credit-check call help reduce the added wait time from this more direct process.
Original PR description
In Odoo 16, the upload of the documents to the extraction server was moved to an asynchronous scheme through the usage of crons (see task 2888454). While this looked like a good idea at first, it…
In Odoo 16, the upload of the documents to the extraction server was moved to an asynchronous scheme through the usage of crons (see task 2888454). While this looked like a good idea at first, it turned out that there were some issues in practice with this solution: - Even when triggering the cron instantly, we have no guarentee that it will run right away as the cron workers could be busy with other tasks. - Low feedback to the user on the state of the upload as it was happening in the background. The main reason for this change was that it improved the reactivity of the interface as the upload itself occurred in the cron job. Considering the situation, it has been decided that we'd go back to a synchronous scheme as the cons mentionned above outweighted the pros. Some improvements have been made to mitigate the latency due to the re-introduction of synchronous uploads: - On the OCR server side, the performances of the parsing routes have been improved to reduce its response time. - An unnecessary call to get the IAP credits of the OCR service has been removed, this will be handled by the OCR server itself. Task #3263472 Co-authored-by: Louis Baudoux <lba@odoo.com>
Danish localization now supports UNSPSC product codes, helping organizations include standardized item classifications where required. The update also prepares UNSPSC code names for translation, including Danish and Spanish translations, so users can work with these codes in their language.
Original PR description
Problem
---------
Danish company which works with administration need to use the UNSPSC
code for items.
Objective
---------
Add UNSPSC code usage to the danish localization.
Solution
---------
Add the UNSPSC logic to the DK localization by adding the product_unspsc
dependency in the localization EDI manifest (created for such porpose).
Regarding the translations, this was done in several steps:
1. Change the UNSPSC field name to translatable
2. Translate the code names in the CSV to English and store them
in a JSON format in the CSV.
3. Translations to other languages can be done through the
Transifex plateform.
task-3340441Tax closing entries now block lines that include taxes, preventing users from creating closing entries that can distort tax reporting. This helps keep tax reports consistent and reduces the risk of incorrect accounting results during tax closing.
Original PR description
This commit adds a constraint to the move lines to disallow users from adding taxes when generating the tax closing entry. The previous behavior allowed users to include taxes in the closing entry, leading to functional issues and inconsistencies in the tax report. This fix ensures that move lines with associated taxes cannot be part of a closing move. Task-Id: 3443259
Users can now drag and drop folders next to each other in the Documents search panel, making it easier to organize folder order without moving them inside another folder. The shared drag-and-drop behavior was also reused from Knowledge to keep folder sorting consistent across apps.
Original PR description
Purpose: - Improve the drag and drop feature of the documents search panel by allowing to drop folders next to other folders in order to resequence them. It was previously only allowed to drop folders inside other folders. This is done using the `useSortableList` hook used in knowledge's sidebar, that is being moved to web to be able to use it in both modules. Task-3422012
The web interface now saves records and, when needed, refreshes their details in a single request instead of two. This should make saving feel faster and reduce server round trips across several enterprise views and apps.
Original PR description
This commit, adds a new python method (`web_save`) to save a record, and optionally read-it again in one rpc call. This optimizes the current behavior that is to save a record in one rpc, and read-it in a second rpc. web_save, will receive the list of IDs of the records to save (if this list is empty it will create the records, if not, it will write on the existing records), the list of changed fields, and the unity specification as optional argument to read the created/modified records (if the specification is not set, the function will return a list of IDs of the created/modified records). task-id: 3453184
This update lets the mail enterprise push notification component continue working on Ubuntu 20.04 systems that use an older approved cryptography package. It avoids forcing some internal systems to upgrade the operating system or install non-standard packages just to receive this module update.
Original PR description
A few internal systems are still running ubuntu 20.04 (focal) which ships with cryptography 2.8. The `backend` parameter was made optional (automatically falling back to the default backend) [in 3.1]. Provide a backend explicitly so the module can be updated without needing to upgrade the system (or install a non-distro package). [in 3.1]: https://cryptography.io/en/3.4.2/changelog.html#v3-1
The system’s date and time library was updated to a newer version, with related adjustments in scheduling and timer areas. This helps keep the platform current and reduces the risk of issues from outdated internal components, without introducing a major visible change for users.
Original PR description
This commit contains adaptations regarding this change. See community counterpart.