summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2019-03-15 15:50:31 +0000
committerqsm-odoo <qsm@odoo.com>2019-03-15 16:03:00 +0000
commita58a115e40e298c2cc8aba27ba8bc45032e84ab3 (patch)
tree846e88420bc6e9cd507290037ac0990caeed4589 /addons/web/static/src/js/views/basic
parent31983e0c2e6a307032f6836107b162c4eefbed1b (diff)
[FIX] website: restore broken promises in website
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` closes odoo/odoo#31887 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic')
0 files changed, 0 insertions, 0 deletions