Daily updates from Odoo
Monday, March 18, 2019
1 change · master
Resolved issues and error corrections
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`