From 8dbab7a5bd7fed3a2d8e02c342ebe2644e08f8f4 Mon Sep 17 00:00:00 2001 From: Stefan Rijnhart Date: Fri, 29 Apr 2016 19:47:41 +0200 Subject: [PATCH] [FIX] RST syntax; add license key; Flake8; disable pylint on the patch file as well --- pos_pricelist/README.rst | 12 ++++++------ pos_pricelist/__openerp__.py | 1 + pos_pricelist/models/point_of_sale.py | 1 - pos_pricelist/models/pos_order_patch.py | 1 + 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/pos_pricelist/README.rst b/pos_pricelist/README.rst index bb4204f2..6a4f69f3 100644 --- a/pos_pricelist/README.rst +++ b/pos_pricelist/README.rst @@ -52,9 +52,9 @@ The POS will recognize it and will compute the price according to the rule defin - Implemented Rules are : -1. (-1) : Rule based on other pricelist -2. (-2) : Rule based on supplierinfo -3. (default) : Any price type which is set on the product form + 1. (-1) : Rule based on other pricelist + 2. (-2) : Rule based on supplierinfo + 3. (default) : Any price type which is set on the product form 3. An new option is introduced in the POS config to let the user show price with taxes in product widget. the UI is updated when we change the customer in order to adapt the prices. @@ -71,12 +71,12 @@ Implemented features at backend 1. Tax details -- Tax details per order line -- Tax details aggregated by tax at order level + - Tax details per order line + - Tax details aggregated by tax at order level 2. Ticket -- Tax details table added at end of printed ticket + - Tax details table added at end of printed ticket Known issues / Roadmap diff --git a/pos_pricelist/__openerp__.py b/pos_pricelist/__openerp__.py index 90954c31..bc83c7a5 100644 --- a/pos_pricelist/__openerp__.py +++ b/pos_pricelist/__openerp__.py @@ -31,4 +31,5 @@ ], 'post_init_hook': "set_pos_line_taxes", 'installable': True, + 'license': 'AGPL-3', } diff --git a/pos_pricelist/models/point_of_sale.py b/pos_pricelist/models/point_of_sale.py index 9291f19d..a7b990b0 100644 --- a/pos_pricelist/models/point_of_sale.py +++ b/pos_pricelist/models/point_of_sale.py @@ -162,7 +162,6 @@ class PosOrder(models.Model): orders.compute_tax_detail() _logger.info("%d orders computed installing module.", len(orders)) - def _register_hook(self, cr): res = super(PosOrder, self)._register_hook(cr) base_order._create_account_move_line = _create_account_move_line diff --git a/pos_pricelist/models/pos_order_patch.py b/pos_pricelist/models/pos_order_patch.py index ae655099..5d1278bd 100644 --- a/pos_pricelist/models/pos_order_patch.py +++ b/pos_pricelist/models/pos_order_patch.py @@ -2,6 +2,7 @@ # Copyright: Odoo S.A. # License: AGPL-3 # flake8: noqa +# pylint: skip-file from openerp.tools.translate import _