[IMP] document_url: black, isort, prettier

This commit is contained in:
davidborromeo 2021-09-01 13:49:04 +02:00 committed by Víctor Martínez
parent 46810643af
commit 4cd9c566de
3 changed files with 10 additions and 3 deletions

View File

@ -5,7 +5,7 @@
* Copyright 2020 Tecnativa - Manuel Calero * Copyright 2020 Tecnativa - Manuel Calero
* License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). * License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
*/ */
odoo.define("document_url", function(require) { odoo.define("document_url", function (require) {
"use strict"; "use strict";
var AttachmentBox = require("mail.AttachmentBox"); var AttachmentBox = require("mail.AttachmentBox");
@ -14,7 +14,7 @@ odoo.define("document_url", function(require) {
events: _.extend(AttachmentBox.prototype.events, { events: _.extend(AttachmentBox.prototype.events, {
"click span.o_add_url_button": "_onAddUrl", "click span.o_add_url_button": "_onAddUrl",
}), }),
_onAddUrl: function() { _onAddUrl: function () {
// Opens wizard to add an URL attachment to the current record // Opens wizard to add an URL attachment to the current record
this.do_action("document_url.action_ir_attachment_add_url", { this.do_action("document_url.action_ir_attachment_add_url", {
additional_context: { additional_context: {
@ -25,7 +25,7 @@ odoo.define("document_url", function(require) {
on_close: this._onAddedUrl.bind(this), on_close: this._onAddedUrl.bind(this),
}); });
}, },
_onAddedUrl: function() { _onAddedUrl: function () {
this.trigger_up("reload_attachment_box"); this.trigger_up("reload_attachment_box");
}, },
}); });

View File

@ -0,0 +1 @@
../../../../document_url

View File

@ -0,0 +1,6 @@
import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)