Daily updates from Odoo
Saturday, April 13, 2024
8 changes · 17.0
Resolved issues and error corrections
This update fixes a bug in the Gantt chart view where quickly resizing a task could accidentally resize a neighboring task instead. The fix improves how the system detects when a resize action begins, ensuring the correct task is selected for resizing. This prevents user frustration and data entry errors when working with tightly packed schedules.
Original PR description
**Before this commit** At the start of a pill resize sequence, if you go fast and your pointer enters an adjacent pill right before the sequence starts you may end up resizing the wrong record. **After this commit** The draggable_hook_builder has been improved in order to inform us when a drag sequence will start. We take advantage of this in order to fix the above issue. Forward-Port-Of: odoo/enterprise#60510 Forward-Port-Of: odoo/enterprise#60328
This update resolves a crash that occurred when users clicked on consolidation accounts in the trial balance grid view. The issue was caused by an undefined variable that prevented the system from properly accessing account information. Users can now navigate and interact with consolidation accounts without encountering errors.
Original PR description
Steps to reproduce ================== - Go to consolidation - Open a record from the dashboard - Go to "trial balance grid" by clicking on the edit button - Clicks on any consolidation account => It gives the traceback Cause of the issue ================== The value of the "range" variable is undefined, thus giving the traceback while trying to access the "name". Forward-Port-Of: odoo/enterprise#60442
Fixed an issue where document file extensions were not updating when users replaced a document with a different file type. Previously, if you uploaded a PDF and then replaced it with a PNG, the system would still show the PDF extension. This fix ensures the file extension automatically updates to match the newly uploaded document.
Original PR description
**Steps to reproduce:** - Enable debug mode. - Select a document (say a pdf file). - Replace it with a non-pdf file (say png). **Issue:** Currently, the file extension is not updated on replacing a document according to the newly uploaded document. **Cause:** The compute method of file extension fetched and set its value only if it was not set already. As a result, the extension was never updated as the field already had a set value (of the older file). **Fix:** This PR alters the code of `_compute_file_extension` to ensure that the extension is recomputed and set every time the name of a document file changes. Task: [3801686](https://www.odoo.com/web#id=3801686&menu_id=4722&cids=2&action=333&active_id=10888&model=project.task&view_type=form) Forward-Port-Of: odoo/enterprise#58656
This fix addresses a problem where default payroll rules were being incorrectly added to inactive payroll structures. The system was finding and applying default rules even when they were marked as inactive, causing unintended behavior when users created their own custom structures. This update ensures default rules are only applied appropriately.
Original PR description
return doesn't work in a previous way because you this structure is added as inactive and whoever adds his own structures, default rules added there because even it is false, `self.env.ref` will find it anyway.
This fix corrects an issue where custom labels entered during bank reconciliation were only applied to one line of the write-off journal entry instead of all lines. Now when users create a write-off and define a label, that label will consistently appear on all related lines in the accounting records, ensuring clearer and more accurate financial documentation.
Original PR description
When creating a write-off during the reconciliation, the label defined is set on only one line instead of all the line of the write-off journal entry. opw-3773178 closes odoo/enterprise#59142 Signed-off-by: Laurent Smet (las) <las@odoo.com> Forward-Port-Of: odoo/enterprise#60641 Forward-Port-Of: odoo/enterprise#60056
This fix resolves an issue where distance calculations for Mexican EDI shipments were failing due to Mapbox API requirements. The system now properly formats requests to meet Mapbox's minimum matrix size requirement, ensuring shipping distance data is accurately retrieved for logistics operations.
Original PR description
Current request to mapbox matrix API is failing because the matrix requested have a size of 1. Based on their documentation: "The minimum number of elements per request is two (one source × two destinations, or two sources × one destination); requests with single-element results are not supported." Therefore we add the first coordinate point as destination. First distance received by API will be 1st to 1st point then second one is 1st to 2nd point. opw-3845936 Forward-Port-Of: odoo/enterprise#60598
This update fixes a resize problem in the Gantt view by adding drag information to the web interface's dragging system. The change improves the user experience when resizing elements in the Gantt scheduling view.
Original PR description
This commit will make a `willDrag` information available to the draggable_hook_builder context. This is needed to fix a resize issue in the gantt view. See correlated enterprise pull request. Forward-Port-Of: odoo/odoo#161446 Forward-Port-Of: odoo/odoo#161096
Documentation and clarification updates
This update adds new members to the Adhoc Contributor License Agreement (CLA) list. The change ensures that additional contributors are properly registered and authorized to contribute to the Odoo project under the corporate CLA agreement.
Original PR description
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#161548