diff options
| author | Géry Debongnie <ged@odoo.com> | 2018-01-25 15:25:30 +0100 |
|---|---|---|
| committer | Géry Debongnie <ged@odoo.com> | 2018-01-25 16:31:06 +0100 |
| commit | 21c1b1acd34406d1c568a66976c69511a656861e (patch) | |
| tree | 81d20d2a997225fac7fdf8a8942f32d8ca9ef2ce /addons/web/static/src/js/fields/basic_fields.js | |
| parent | eefe879a37aba221bda84adfd880fb7876955920 (diff) | |
[FIX] web: add target=_blank to url field widgets
Url in the web client are supposed to open in a new tab. This was the
way it worked in v10.0 and was lost with the refactoring of the new
views.
We just reintroduce that behaviour with this commit.
Closes github issue #22389
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
| -rw-r--r-- | addons/web/static/src/js/fields/basic_fields.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/web/static/src/js/fields/basic_fields.js b/addons/web/static/src/js/fields/basic_fields.js index 09406b43711..26e7d86fabc 100644 --- a/addons/web/static/src/js/fields/basic_fields.js +++ b/addons/web/static/src/js/fields/basic_fields.js @@ -1068,6 +1068,7 @@ var UrlWidget = InputField.extend({ _renderReadonly: function () { this.$el.text(this.attrs.text || this.value) .addClass('o_form_uri o_text_overflow') + .attr('target', '_blank') .attr('href', this.value); } }); |
