Thursday, November 30, 2023
4 changes · 17.0
Enhancements to existing features
Odoo now checks which member details can be set when a new Discuss channel is created. This helps prevent unexpected or unintended member information from being accepted, making channel creation more reliable.
Original PR description
The goal is to prevent users to set unexpected fields for Discuss channel members when creating a new channel.
Attachments for expenses and resumes now get searchable index content, similar to invoices. This makes these documents easier to find and process, improving document management across more workflows.
Original PR description
Previously, the index content of the attachment was only set for invoices, but it can be useful for expenses and resumes as well.
The system now automatically uses xe.com as the default currency rate provider for companies operating in India. This improvement streamlines the setup process for Indian businesses by eliminating the need for manual configuration of currency exchange rate services.
Original PR description
In this PR ======================= Currency rate provider service is set as xe.com as default for the companies in India. task - 3614513
The UPS delivery module's test data has been reorganized by extracting hardcoded XML content and embedded files from the Python code into separate files on disk. This improves code readability and prevents search tools from incorrectly matching test data strings, while maintaining the same test functionality through efficient file loading.
Original PR description
The UPS http server is mocked to always returns mocked XML content. That mocked content was hardcoded inside the python code, which resulted in multiple huge unreadable strings. Because of their…
The UPS http server is mocked to always returns mocked XML content. That mocked content was hardcoded inside the python code, which resulted in multiple huge unreadable strings. Because of their inclusion in python file, global regexp search inside the enterprise repository could match inside those string even if the search excluded non python file. This is the actual motivation of this work, to extract the XML hardcoded document inside XML files on disk so that global text search don't wrongly match those lines. Inside the second XML document entitled "shipment_request.xml" were three assets inlined as very long base64 strings. Those assets have been extracted, base64 decoded and stored on disk in dedicated files. This ease understanding both the content of the XML files and to make it possible to open the assets. The original document (with inlined base64 assets) is reconstructed at runtime. Using `functools.lru_cache` to lazily open and read the files upon first usage, this prevent loading the files in case the test is actually not run, this also loads the files only once for all test cases. Forward-Port-Of: odoo/enterprise#51480