[IMP] Merge 'web_widget_prefixed_url'

This commit is contained in:
Joan Sisquella
2020-03-03 11:30:34 +01:00
committed by Jasmin Solanki
parent 6001ae2433
commit f62192242a
4 changed files with 35 additions and 3 deletions

View File

@@ -23,5 +23,17 @@ odoo.define("web_widget_url_advanced", function(require) {
this.attrs.text = field_value;
}
},
/**
*
* @override
* @private
*/
_renderReadonly: function() {
this._super.apply(this, arguments);
var prefix = this.attrs.prefix_name || this.attrs.options.prefix_name;
if (prefix) {
this.$el.attr("href", prefix + ":" + this.value);
}
},
});
});