From 3e8dd0fbfc88fcd07d6d2cf550835cecaf7148d4 Mon Sep 17 00:00:00 2001 From: Joan Date: Thu, 21 May 2020 09:28:28 +0200 Subject: [PATCH] [IMP] pos_order_remove_line: black, isort, prettier --- pos_order_remove_line/__manifest__.py | 24 ++++++++----------- .../static/src/js/order_line.js | 15 ++++++------ .../static/src/xml/order_line.xml | 3 +-- pos_order_remove_line/views/assets.xml | 17 +++++++------ 4 files changed, 29 insertions(+), 30 deletions(-) diff --git a/pos_order_remove_line/__manifest__.py b/pos_order_remove_line/__manifest__.py index 3a55b55f..d98af745 100644 --- a/pos_order_remove_line/__manifest__.py +++ b/pos_order_remove_line/__manifest__.py @@ -2,19 +2,15 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) { - 'name': "POS Order Remove Line", - 'summary': "Add button to remove POS order line.", - 'author': "Roberto Fichera, Odoo Community Association (OCA)", - 'website': 'https://www.github.com/OCA/pos', - 'category': 'Point of Sale', + "name": "POS Order Remove Line", + "summary": "Add button to remove POS order line.", + "author": "Roberto Fichera, Odoo Community Association (OCA)", + "website": "https://www.github.com/OCA/pos", + "category": "Point of Sale", "maintainers": ["robyf70"], - 'version': '12.0.1.0.0', - 'license': 'LGPL-3', - 'depends': ['point_of_sale'], - 'data': [ - 'views/assets.xml' - ], - 'qweb': [ - 'static/src/xml/order_line.xml' - ] + "version": "13.0.1.0.0", + "license": "LGPL-3", + "depends": ["point_of_sale"], + "data": ["views/assets.xml"], + "qweb": ["static/src/xml/order_line.xml"], } diff --git a/pos_order_remove_line/static/src/js/order_line.js b/pos_order_remove_line/static/src/js/order_line.js index dced5d7a..9cec4950 100644 --- a/pos_order_remove_line/static/src/js/order_line.js +++ b/pos_order_remove_line/static/src/js/order_line.js @@ -3,20 +3,21 @@ * License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) */ -odoo.define('pos_order_remove_line.order_line', function (require) { +odoo.define("pos_order_remove_line.order_line", function(require) { "use strict"; - require('point_of_sale.screens').OrderWidget.include({ - render_orderline: function () { + require("point_of_sale.screens").OrderWidget.include({ + render_orderline: function() { var node = this._super.apply(this, arguments); - $(node).find('.remove-line-button').on('click', null, - this.remove_line.bind(this)); + $(node) + .find(".remove-line-button") + .on("click", null, this.remove_line.bind(this)); return node; }, - remove_line: function (ev) { - ev.delegateTarget.parentElement.orderline.set_quantity('remove'); + remove_line: function(ev) { + ev.delegateTarget.parentElement.orderline.set_quantity("remove"); }, }); }); diff --git a/pos_order_remove_line/static/src/xml/order_line.xml b/pos_order_remove_line/static/src/xml/order_line.xml index 970ddb29..2cf0e0c9 100644 --- a/pos_order_remove_line/static/src/xml/order_line.xml +++ b/pos_order_remove_line/static/src/xml/order_line.xml @@ -2,12 +2,11 @@ ~ Copyright 2019 LevelPrime ~ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) --> - diff --git a/pos_order_remove_line/views/assets.xml b/pos_order_remove_line/views/assets.xml index 72db88da..71401039 100644 --- a/pos_order_remove_line/views/assets.xml +++ b/pos_order_remove_line/views/assets.xml @@ -1,17 +1,20 @@ - - + - -