diff options
| author | David Monjoie <dmo@odoo.com> | 2019-03-01 15:55:43 +0100 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2019-03-06 20:07:17 +0100 |
| commit | 7cb64b5e93279b9c654d2cb035f895e59adbddda (patch) | |
| tree | 847727fb6c94823dcd41e0a47d2c280b2f1c41ce /doc/howtos/web.rst | |
| parent | 4721de57df25eab1ebf590268f85c0c8cb5b2d2a (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.rst | 4 |
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'); |
