mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[IMP] Merge 'web_widget_prefixed_url'
This commit is contained in:
committed by
Jasmin Solanki
parent
6001ae2433
commit
f62192242a
@@ -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);
|
||||
}
|
||||
},
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user