Daily updates from Odoo
Tuesday, March 22, 2022
5 changes · master
Enhancements to existing features
The spreadsheet component used in Documents has been updated to a newer version. This keeps the embedded spreadsheet experience aligned with the latest improvements and helps maintain compatibility with newer underlying interface technology.
Original PR description
### Contains the following commits: https://github.com/odoo/o-spreadsheet/commit/8627134e [IMP] package: update owl to 2.0-beta.3
Resolved issues and error corrections
This fix ensures currency data is only loaded once when opening or using bundled spreadsheets. It avoids unnecessary repeated processing, helping spreadsheet features behave more consistently and efficiently.
Original PR description
Before this commit, the "load_currency" could be triggered more than once as we returned an empty answer. Task-id 2796425
Code cleanup and technical improvements
This update reorganizes part of the enterprise messaging interface code without changing visible features. It helps keep the underlying component structure cleaner and easier to maintain, reducing future development risk.
Original PR description
Task-2759571
Miscellaneous changes
Steps : Install Rental and Inventory. Inventory > Settings > Traceability > Enable Lots & S/N. Rental > Create a Product: > Invetory > Tracking : By Unique S/N Create a Rental Order and add this Product to the Order Lines. In the wizard that pops up, set the same dates for "from" and "to" dates and click on Apply. Issue : TypeError: can only concatenate list (not "sale.order.line") to list. Cause : Clicking on Apply calls _get_unavailable_qty_and_lots(), which calls _get_active_
Original PR description
Steps : Install Rental and Inventory. Inventory > Settings > Traceability > Enable Lots & S/N. Rental > Create a Product: > Invetory > Tracking : By Unique S/N Create a Rental Order and add this Product to the Order Lines. In the wizard that pops up, set the same dates for "from" and "to" dates and click on Apply. Issue : TypeError: can only concatenate list (not "sale.order.line") to list. Cause : Clicking on Apply calls _get_unavailable_qty_and_lots(), which calls _get_active_rental_lines(). When "from" and "to" are equal, _get_active_rental_lines() returns 2 empty lists and some SOLs. Later, we try to concatenate those results together. Fix : Instead of returning empty lists, return empty records. opw-2793666 Forward-Port-Of: odoo/enterprise#25442
Forward-Port-Of: odoo/enterprise#25422
Original PR description
Forward-Port-Of: odoo/enterprise#25422