diff --git a/web_pwa_oca/static/description/index.html b/web_pwa_oca/static/description/index.html index 1ffb5687d..0feda31ac 100644 --- a/web_pwa_oca/static/description/index.html +++ b/web_pwa_oca/static/description/index.html @@ -453,8 +453,8 @@ need to use the following workaround:
Natural ‘async/await’ example (This breaks “_super” call):
var MyClass = OdooClass.extend({ - myFunc: async function() { - const mydata = await ...do await stuff... + myFunc: async function() { + const mydata = await ...do await stuff... return mydata; } }); @@ -464,8 +464,8 @@ need to use the following workaround:var MyClass = OdooClass.extend({ myFunc: function() { - return new Promise(async (resolve, reject) => { - const mydata = await ...do await stuff... + return new Promise(async (resolve, reject) => { + const mydata = await ...do await stuff... return resolve(mydata); }); }