mirror of
https://github.com/OCA/knowledge.git
synced 2025-12-20 12:22:18 -06:00
[IMP] document_url: black, isort
This commit is contained in:
committed by
FernandoRomera
parent
6261c27f4e
commit
1b3bb42821
@@ -2,6 +2,7 @@
|
||||
* Pedro M. Baeza <pedro.baeza@serviciosbaeza.com>
|
||||
* Copyright 2016 ACSONE SA/NV (<http://acsone.eu>)
|
||||
* Copyright 2019 Tecnativa - Ernesto Tejeda
|
||||
* Copyright 2020 Tecnativa - Manuel Calero
|
||||
* License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
*/
|
||||
odoo.define('document_url', function (require) {
|
||||
@@ -13,13 +14,8 @@ odoo.define('document_url', function (require) {
|
||||
events: _.extend(AttachmentBox.prototype.events, {
|
||||
"click span.o_add_url_button": "_onAddUrl",
|
||||
}),
|
||||
/**
|
||||
* Opens wizard to add an URL attachment to the current record
|
||||
*
|
||||
* @private
|
||||
* @param {MouseEvent} ev
|
||||
*/
|
||||
_onAddUrl: function (ev) {
|
||||
_onAddUrl: function () {
|
||||
// Opens wizard to add an URL attachment to the current record
|
||||
this.do_action('document_url.action_ir_attachment_add_url', {
|
||||
additional_context: {
|
||||
'active_id': this.currentResID,
|
||||
@@ -29,11 +25,8 @@ odoo.define('document_url', function (require) {
|
||||
on_close: this._onAddedUrl.bind(this),
|
||||
});
|
||||
},
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
_onAddedUrl: function () {
|
||||
this.trigger_up('reload_attachment_box');
|
||||
}
|
||||
},
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user