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; }; } });