From e023a0026e2e9a337adeec89021d5ade849ac0e6 Mon Sep 17 00:00:00 2001 From: dsolanki Date: Fri, 16 Apr 2021 12:18:10 +0530 Subject: [PATCH] [IMP] black, isort, prettier. --- pos_loyalty/__manifest__.py | 50 ++- pos_loyalty/demo/templates.xml | 4 +- pos_loyalty/models/loyalty_program.py | 51 +-- pos_loyalty/models/loyalty_reward.py | 109 +++--- pos_loyalty/models/loyalty_rule.py | 60 ++-- pos_loyalty/models/pos_config.py | 11 +- pos_loyalty/models/pos_order.py | 19 +- pos_loyalty/models/pos_order_line.py | 9 +- pos_loyalty/models/res_partner.py | 9 +- pos_loyalty/static/src/css/pos.css | 9 +- pos_loyalty/static/src/js/pos.js | 396 ++++++++++++--------- pos_loyalty/static/src/js/tests.js | 269 ++++++++------ pos_loyalty/static/src/xml/pos.xml | 69 ++-- pos_loyalty/tests/__init__.py | 1 - pos_loyalty/tests/test_pos_loyalty.py | 110 +++--- pos_loyalty/views/loyalty_program_view.xml | 56 ++- pos_loyalty/views/loyalty_reward_view.xml | 48 ++- pos_loyalty/views/loyalty_rule_view.xml | 24 +- pos_loyalty/views/pos_config_view.xml | 8 +- pos_loyalty/views/pos_order_view.xml | 6 +- pos_loyalty/views/res_partner_view.xml | 14 +- pos_loyalty/views/templates.xml | 6 +- setup/pos_loyalty/odoo/addons/pos_loyalty | 1 + setup/pos_loyalty/setup.py | 6 + 24 files changed, 784 insertions(+), 561 deletions(-) create mode 120000 setup/pos_loyalty/odoo/addons/pos_loyalty create mode 100644 setup/pos_loyalty/setup.py diff --git a/pos_loyalty/__manifest__.py b/pos_loyalty/__manifest__.py index b7e7f5188b..15d57723fe 100644 --- a/pos_loyalty/__manifest__.py +++ b/pos_loyalty/__manifest__.py @@ -4,33 +4,27 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { - 'name': 'Loyalty Program', - 'version': '12.0.1.0.0', - 'category': 'Point of Sale', - 'license': 'AGPL-3', - 'author': "OpenERP SA, " - "RGB Consulting SL, " - "Lambda IS, " - "Odoo Community Association (OCA)", - 'website': "https://odoo-community.org/", - 'depends': ['point_of_sale'], - 'demo': [ - 'demo/templates.xml', + "name": "Loyalty Program", + "version": "12.0.1.0.0", + "category": "Point of Sale", + "license": "AGPL-3", + "author": "OpenERP SA, " + "RGB Consulting SL, " + "Lambda IS, " + "Odoo Community Association (OCA)", + "website": "https://odoo-community.org/", + "depends": ["point_of_sale"], + "demo": ["demo/templates.xml"], + "data": [ + "security/ir.model.access.csv", + "views/templates.xml", + "views/loyalty_program_view.xml", + "views/loyalty_reward_view.xml", + "views/loyalty_rule_view.xml", + "views/pos_config_view.xml", + "views/pos_order_view.xml", + "views/res_partner_view.xml", ], - 'data': [ - 'security/ir.model.access.csv', - 'views/templates.xml', - 'views/loyalty_program_view.xml', - 'views/loyalty_reward_view.xml', - 'views/loyalty_rule_view.xml', - 'views/pos_config_view.xml', - 'views/pos_order_view.xml', - 'views/res_partner_view.xml', - ], - - 'qweb': [ - 'static/src/xml/pos.xml', - ], - - 'installable': True, + "qweb": ["static/src/xml/pos.xml"], + "installable": True, } diff --git a/pos_loyalty/demo/templates.xml b/pos_loyalty/demo/templates.xml index 81f834eb57..a7e84be2cf 100644 --- a/pos_loyalty/demo/templates.xml +++ b/pos_loyalty/demo/templates.xml @@ -1,8 +1,8 @@ - +