diff --git a/web_relational_enhancer/static/src/js/field_enhancer.js b/web_relational_enhancer/static/src/js/field_enhancer.js index 4f0375fb..5eee7896 100644 --- a/web_relational_enhancer/static/src/js/field_enhancer.js +++ b/web_relational_enhancer/static/src/js/field_enhancer.js @@ -58,8 +58,9 @@ odoo.define('web_relational_enhancer.field_enhancer', function(require) { }).fail(err => console.log(`Error getting relational fields. Error: ${err}`)) return def - } else - return data + } + + return data } function enhanceMany2OneEntryLabel(result) { @@ -104,7 +105,7 @@ odoo.define('web_relational_enhancer.field_enhancer', function(require) { _super.bind(self)(res) }) } else - this._super(data) + _super(data) } })