Daily updates from Odoo
Thursday, January 31, 2019
5 changes
Resolved issues and error corrections
This fixes a problem where broken image fields could keep retrying in the background even after a screen was closed. The change reduces unnecessary CPU and memory use, helping prevent slowdowns or crashes during testing and similar image-error cases.
Original PR description
During the unit tests, I have noticed that the test window was doing a lot of work after the test were completed, it was using CPU and using RAM in jigsaw pattern. Eventually after being left alone…
During the unit tests, I have noticed that the test window was doing a lot of work after the test were completed, it was using CPU and using RAM in jigsaw pattern. Eventually after being left alone for a few hours, the window would just crash. This was due to an unlimitted chain of deferred running when an image field had a load error. The situation is as such: ``` 1. The image is put in the DOM with an onError handler 2. There is an error, as the image is a dummy text for the tests 3. The onError is called, it clears the image field, then calls _render 4. _render re-adds an image with the same onError handler <---------- 5. The onError is called - again - it clears the image field - again | (wich does nothing this time because the value is the same) - | then calls _render - again | 6. The second time _render is called, go to step 4 -------------------- ``` ... In the meantime, the widget has been destroyed by the test, so it should not do anything anymore. This fix breaks the loop, as well as bind the onError handled with 'one' instead of 'on'. Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This fixes an issue in the Point of Sale where keyboard handling could remain active after leaving the product screen. It helps prevent unintended actions from key presses and makes the checkout experience more reliable for staff.
Original PR description
Issue: https://www.odoo.com/web#id=1934670&model=project.task&view_type=form&menu_id= -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This update fixes issues in the call for tender process, especially when purchases are triggered automatically from make-to-order needs. It helps ensure tender-related purchase workflows behave correctly and reduces errors during procurement.
Original PR description
Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Pivot reports now include selected calculated measures even when those fields are not stored in the database. This helps users see the reporting data they configured instead of missing measures in analysis views.
Original PR description
Description of the issue/feature this PR addresses: When a measure field is defined in the arch but for a compute field not stored, the field was not added to the list of measures -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This update prevents users from being automatically subscribed to website course channels in situations that could trigger unwanted emails or spam. It also fixes a crash when creating a new slide and adds tests to help keep these course publishing workflows stable.