From caab6f1f3aaf88a9e17287482f34ad09b109c3a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?N=C3=BAria=20Mart=C3=ADn=20Xifr=C3=A9?= Date: Tue, 14 Jan 2020 10:49:55 +0100 Subject: [PATCH] [IMP] web_drop_target: black, isort --- web_drop_target/__manifest__.py | 13 +++---------- web_drop_target/static/src/js/web_drop_target.js | 4 ++-- web_drop_target/static/src/xml/widgets.xml | 1 - 3 files changed, 5 insertions(+), 13 deletions(-) diff --git a/web_drop_target/__manifest__.py b/web_drop_target/__manifest__.py index f801c25bd..da15ce314 100644 --- a/web_drop_target/__manifest__.py +++ b/web_drop_target/__manifest__.py @@ -8,14 +8,7 @@ "license": "AGPL-3", "category": "Usability", "summary": "Allows to drag files into Odoo", - "depends": [ - 'web', - 'document' - ], - "data": [ - 'views/templates.xml', - ], - "qweb": [ - 'static/src/xml/widgets.xml', - ] + "depends": ["web", "document"], + "data": ["views/templates.xml"], + "qweb": ["static/src/xml/widgets.xml"], } diff --git a/web_drop_target/static/src/js/web_drop_target.js b/web_drop_target/static/src/js/web_drop_target.js index 43bfeb1f8..15cb91c72 100644 --- a/web_drop_target/static/src/js/web_drop_target.js +++ b/web_drop_target/static/src/js/web_drop_target.js @@ -130,7 +130,7 @@ odoo.define('web_drop_target', function(require) { ); var o_content_position = o_content.position(); this._drop_overlay.css({ - 'top': o_content_position.top, + 'top': o_content_position.top, 'left': o_content_position.left, 'width': view_manager.width(), 'height': view_manager.height() @@ -138,7 +138,7 @@ odoo.define('web_drop_target', function(require) { o_content.append(this._drop_overlay); } }, - + _remove_overlay: function() { if (this._drop_overlay) { this._drop_overlay.remove(); diff --git a/web_drop_target/static/src/xml/widgets.xml b/web_drop_target/static/src/xml/widgets.xml index 50142051f..e6c9ee052 100644 --- a/web_drop_target/static/src/xml/widgets.xml +++ b/web_drop_target/static/src/xml/widgets.xml @@ -14,4 +14,3 @@ -