summaryrefslogtreecommitdiff
path: root/doc/howtos/web.rst
diff options
context:
space:
mode:
authorDavid Monjoie <dmo@odoo.com>2019-03-01 15:55:43 +0100
committerAaron Bohy <aab@odoo.com>2019-03-06 20:07:17 +0100
commit7cb64b5e93279b9c654d2cb035f895e59adbddda (patch)
tree847727fb6c94823dcd41e0a47d2c280b2f1c41ce /doc/howtos/web.rst
parent4721de57df25eab1ebf590268f85c0c8cb5b2d2a (diff)
[REF] doc: promisify doc examples
Also remove a file on async stuff as its content is outdated, and actually not used.
Diffstat (limited to 'doc/howtos/web.rst')
-rw-r--r--doc/howtos/web.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/howtos/web.rst b/doc/howtos/web.rst
index df44ff25eba..550ffeffea1 100644
--- a/doc/howtos/web.rst
+++ b/doc/howtos/web.rst
@@ -1544,10 +1544,10 @@ Exercises
local.HomePage = instance.Widget.extend({
template: "HomePage",
start: function () {
- return $.when(
+ return Promise.all([
new local.PetToysList(this).appendTo(this.$('.oe_petstore_homepage_left')),
new local.MessageOfTheDay(this).appendTo(this.$('.oe_petstore_homepage_right'))
- );
+ ]);
}
});
instance.web.client_actions.add('petstore.homepage', 'instance.oepetstore.HomePage');