mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[IMP] web_widget_url_advanced: black, isort
This commit is contained in:
committed by
Jasmin Solanki
parent
5efdd66e1b
commit
74b87e8517
@@ -1,18 +1,18 @@
|
||||
/* Copyright 2018 Simone Orsi - Camptocamp SA
|
||||
License LGPLv3.0 or later (https://www.gnu.org/licenses/lgpl-3.0.en.html). */
|
||||
|
||||
odoo.define('web_widget_url_advanced', function (require) {
|
||||
odoo.define("web_widget_url_advanced", function(require) {
|
||||
"use strict";
|
||||
|
||||
var basic_fields = require('web.basic_fields');
|
||||
var basic_fields = require("web.basic_fields");
|
||||
|
||||
basic_fields.UrlWidget.include({
|
||||
/**
|
||||
* @override
|
||||
*/
|
||||
init: function () {
|
||||
init: function() {
|
||||
this._super.apply(this, arguments);
|
||||
// retrieve customized `<a />` text from a field
|
||||
// Retrieve customized `<a />` text from a field
|
||||
// via `text_field` attribute or `options.text_field`
|
||||
var text_field = this.attrs.text_field || this.attrs.options.text_field;
|
||||
if (text_field) {
|
||||
@@ -24,5 +24,4 @@ odoo.define('web_widget_url_advanced', function (require) {
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user