Daily updates from Odoo
Monday, March 18, 2019
3 changes · master
Resolved issues and error corrections
The website theme customization dialog now shows heading colors correctly again instead of appearing transparent. This prevents confusion when users adjust website styling and helps ensure theme settings display as expected.
Original PR description
Since the bootstrap update that was merged with https://github.com/odoo/odoo/commit/754ec4450832dceef83c3a0abb79401f2e7ec05d the customize theme dialog was showing transparent colors for the headings. This was because bootstrap changed the value of the related variable from 'inherit' to 'null' to avoid an useless css rule if the headings are supposed to have the same color as the body text.
This fix updates the website eLearning code to use the proper frontend component for non-animation behavior. It helps keep course category and slide archive interactions stable and aligned with the platform's expected website behavior.
Original PR description
Purpose ======= This follows up commit d946b7a85d2c1bbc20ace8e2b269be56a63876fd that cleans wrong uses of sAnimations for non-animated behaviors. 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 fix corrects promise handling issues introduced during the move to jQuery 3 in the Website app. It helps restore reliable website editor and theme behavior, reducing unexpected failures for users managing website content.
Original PR description
Since the switch to jQuery 3, Odoo uses native promises in its JS. Some mistakes were made in the website app during conversion from old jQuery deferred to native promises. - `this` -> `self` when wrapping in a promise - `.always(fct)` -> `.then(fct).guardedCatch(fct)` - a function returned sometimes a jQuery deferred, sometimes a native promise. This made the caller fail when using `always` or fail when using `guardedCatch`