summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/core/utils.js
diff options
context:
space:
mode:
Diffstat (limited to 'addons/web/static/src/js/core/utils.js')
-rw-r--r--addons/web/static/src/js/core/utils.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/addons/web/static/src/js/core/utils.js b/addons/web/static/src/js/core/utils.js
index 4fe1740d6eb..6527207dfc9 100644
--- a/addons/web/static/src/js/core/utils.js
+++ b/addons/web/static/src/js/core/utils.js
@@ -549,8 +549,11 @@ var utils = {
metadata.origMethods[methodName] = original;
}
proto[methodName] = function (...args) {
+ const previousSuper = this._super;
this._super = original;
- return method.call(this, ...args);
+ const res = method.call(this, ...args);
+ this._super = previousSuper;
+ return res;
};
}
});