From 1eb15ff81e04dc1038d56be047d02df6777b1028 Mon Sep 17 00:00:00 2001 From: Francisco Ivan Anton Prieto Date: Thu, 22 Oct 2020 22:11:46 +0200 Subject: [PATCH] [IMP] account_tax_balance: black, isort, prettier --- account_tax_balance/hooks.py | 4 ++-- account_tax_balance/models/account_tax.py | 2 +- account_tax_balance/wizard/open_tax_balances_view.xml | 8 ++++---- setup/account_tax_balance/odoo/addons/account_tax_balance | 1 + setup/account_tax_balance/setup.py | 6 ++++++ 5 files changed, 14 insertions(+), 7 deletions(-) create mode 120000 setup/account_tax_balance/odoo/addons/account_tax_balance create mode 100644 setup/account_tax_balance/setup.py diff --git a/account_tax_balance/hooks.py b/account_tax_balance/hooks.py index 1fafad71..bdc693a5 100644 --- a/account_tax_balance/hooks.py +++ b/account_tax_balance/hooks.py @@ -7,11 +7,11 @@ from psycopg2 import sql def pre_init_hook(cr): - """ Precreate move_type and fill with appropriate values to prevent + """Precreate move_type and fill with appropriate values to prevent a MemoryError when the ORM attempts to call its compute method on a large amount of preexisting moves. Note that the order of the mapping is important as one move can have move lines on accounts of multiple types - and the move type is set in the order of precedence. """ + and the move type is set in the order of precedence.""" logger = logging.getLogger(__name__) logger.info("Add account_move.move_type column if it does not yet exist") cr.execute("ALTER TABLE account_move ADD COLUMN IF NOT EXISTS move_type VARCHAR") diff --git a/account_tax_balance/models/account_tax.py b/account_tax_balance/models/account_tax.py index a2560e6f..243bf65e 100644 --- a/account_tax_balance/models/account_tax.py +++ b/account_tax_balance/models/account_tax.py @@ -35,7 +35,7 @@ class AccountTax(models.Model): ) def _account_tax_ids_with_moves(self): - """ Return all account.tax ids for which there is at least + """Return all account.tax ids for which there is at least one account.move.line in the context period for the user company. diff --git a/account_tax_balance/wizard/open_tax_balances_view.xml b/account_tax_balance/wizard/open_tax_balances_view.xml index e3ba2373..61894ff7 100644 --- a/account_tax_balance/wizard/open_tax_balances_view.xml +++ b/account_tax_balance/wizard/open_tax_balances_view.xml @@ -18,15 +18,15 @@
-
+ or +