[MIG] web_widget_open_tab: Migration to 13.0

This commit is contained in:
Raf Ven
2020-12-07 10:14:21 +01:00
parent c2d559d017
commit 4393c4f405
7 changed files with 27 additions and 18 deletions

View File

@@ -36,7 +36,7 @@ odoo.define("web_widget_open_tab.FieldOpenTab", function(require) {
_renderReadonly: function() {
var $content = $("<a/>", {
href: this._getReference(),
class: "open_tab_widget fa fa-eye",
class: "open_tab_widget fa fa-external-link",
});
var self = this;
$content.tooltip({
@@ -60,7 +60,7 @@ odoo.define("web_widget_open_tab.FieldOpenTab", function(require) {
ev.preventDefault();
ev.stopPropagation();
var element = $(ev.currentTarget).find("a");
if (element != null && element[0].href != null) {
if (element !== null && element[0].href !== null) {
window.open(this._getReference());
}
},