From 9d7dfddb6e60931aefdb9e219860c7154812ba91 Mon Sep 17 00:00:00 2001 From: Sergi Almacellas Abellana Date: Wed, 11 Jan 2023 14:42:13 +0100 Subject: [PATCH] Run isort on all files --- modules/account_asset/tests/tools.py | 1 - modules/account_deposit/tests/tools.py | 1 - modules/account_fr/tests/tools.py | 1 - modules/account_invoice_defer/tests/tools.py | 1 - modules/account_stock_anglo_saxon/tests/tools.py | 1 - modules/account_stock_continental/tests/tools.py | 1 - modules/authentication_sms/tests/test_module.py | 3 +-- modules/carrier_carriage/incoterm.py | 2 +- modules/company/tests/tools.py | 1 - modules/sale_advance_payment/tests/tools.py | 1 - modules/sale_opportunity/opportunity_reporting.py | 1 + modules/stock_shipment_cost/stock.py | 2 +- 12 files changed, 4 insertions(+), 12 deletions(-) diff --git a/modules/account_asset/tests/tools.py b/modules/account_asset/tests/tools.py index bdb635abaa..649abbc95b 100644 --- a/modules/account_asset/tests/tools.py +++ b/modules/account_asset/tests/tools.py @@ -1,7 +1,6 @@ # This file is part of Tryton. The COPYRIGHT file at the top level of # this repository contains the full copyright notices and license terms. from proteus import Model - from trytond.modules.company.tests.tools import get_company diff --git a/modules/account_deposit/tests/tools.py b/modules/account_deposit/tests/tools.py index dd0d61f690..8937ba2792 100644 --- a/modules/account_deposit/tests/tools.py +++ b/modules/account_deposit/tests/tools.py @@ -1,7 +1,6 @@ # This file is part of Tryton. The COPYRIGHT file at the top level of # this repository contains the full copyright notices and license terms. from proteus import Model - from trytond.modules.company.tests.tools import get_company diff --git a/modules/account_fr/tests/tools.py b/modules/account_fr/tests/tools.py index 38fc221003..f2335c9388 100644 --- a/modules/account_fr/tests/tools.py +++ b/modules/account_fr/tests/tools.py @@ -1,7 +1,6 @@ # This file is part of Tryton. The COPYRIGHT file at the top level of # this repository contains the full copyright notices and license terms. from proteus import Model, Wizard - from trytond.modules.company.tests.tools import get_company __all__ = ['create_chart', 'get_accounts'] diff --git a/modules/account_invoice_defer/tests/tools.py b/modules/account_invoice_defer/tests/tools.py index f75b10598f..836b40f7dd 100644 --- a/modules/account_invoice_defer/tests/tools.py +++ b/modules/account_invoice_defer/tests/tools.py @@ -2,7 +2,6 @@ # this repository contains the full copyright notices and license terms. from proteus import Model from proteus.config import get_config - from trytond.modules.company.tests.tools import get_company diff --git a/modules/account_stock_anglo_saxon/tests/tools.py b/modules/account_stock_anglo_saxon/tests/tools.py index f5f29baafa..8df79f6bbe 100644 --- a/modules/account_stock_anglo_saxon/tests/tools.py +++ b/modules/account_stock_anglo_saxon/tests/tools.py @@ -1,7 +1,6 @@ # This file is part of Tryton. The COPYRIGHT file at the top level of # this repository contains the full copyright notices and license terms. from proteus import Model - from trytond.modules.company.tests.tools import get_company diff --git a/modules/account_stock_continental/tests/tools.py b/modules/account_stock_continental/tests/tools.py index dbadfce4a6..c2aacc29e2 100644 --- a/modules/account_stock_continental/tests/tools.py +++ b/modules/account_stock_continental/tests/tools.py @@ -1,7 +1,6 @@ # This file is part of Tryton. The COPYRIGHT file at the top level of # this repository contains the full copyright notices and license terms. from proteus import Model - from trytond.modules.company.tests.tools import get_company diff --git a/modules/authentication_sms/tests/test_module.py b/modules/authentication_sms/tests/test_module.py index ba1c47dfb0..163a0de1ef 100644 --- a/modules/authentication_sms/tests/test_module.py +++ b/modules/authentication_sms/tests/test_module.py @@ -5,8 +5,7 @@ import datetime from trytond.config import config from trytond.exceptions import LoginException from trytond.pool import Pool -from trytond.tests.test_tryton import ModuleTestCase -from trytond.tests.test_tryton import with_transaction +from trytond.tests.test_tryton import ModuleTestCase, with_transaction def send_sms(text, to, from_): diff --git a/modules/carrier_carriage/incoterm.py b/modules/carrier_carriage/incoterm.py index c6c3a3ceb4..9f9a22428d 100644 --- a/modules/carrier_carriage/incoterm.py +++ b/modules/carrier_carriage/incoterm.py @@ -1,8 +1,8 @@ # This file is part of Tryton. The COPYRIGHT file at the top level of # this repository contains the full copyright notices and license terms. -from trytond.pool import PoolMeta from trytond.model import fields +from trytond.pool import PoolMeta class Incoterm(metaclass=PoolMeta): diff --git a/modules/company/tests/tools.py b/modules/company/tests/tools.py index 3bdbec7b48..95caafc138 100644 --- a/modules/company/tests/tools.py +++ b/modules/company/tests/tools.py @@ -2,7 +2,6 @@ # this repository contains the full copyright notices and license terms. from proteus import Model, Wizard from proteus.config import get_config - from trytond.modules.currency.tests.tools import get_currency __all__ = ['create_company', 'get_company'] diff --git a/modules/sale_advance_payment/tests/tools.py b/modules/sale_advance_payment/tests/tools.py index b3eb410860..2707c5d81f 100644 --- a/modules/sale_advance_payment/tests/tools.py +++ b/modules/sale_advance_payment/tests/tools.py @@ -3,7 +3,6 @@ from datetime import timedelta from proteus import Model - from trytond.modules.company.tests.tools import get_company diff --git a/modules/sale_opportunity/opportunity_reporting.py b/modules/sale_opportunity/opportunity_reporting.py index bdbbb5ce63..2f453f033d 100644 --- a/modules/sale_opportunity/opportunity_reporting.py +++ b/modules/sale_opportunity/opportunity_reporting.py @@ -8,6 +8,7 @@ from sql import Literal, Null, With from sql.aggregate import Count, Min, Sum from sql.conditionals import Case from sql.functions import CurrentTimestamp + try: import pygal except ImportError: diff --git a/modules/stock_shipment_cost/stock.py b/modules/stock_shipment_cost/stock.py index 4d4baf5b24..ae15cc8907 100644 --- a/modules/stock_shipment_cost/stock.py +++ b/modules/stock_shipment_cost/stock.py @@ -7,7 +7,7 @@ from sql import Null from trytond.model import ModelView, Workflow, fields from trytond.modules.product import price_digits, round_price from trytond.pool import Pool, PoolMeta -from trytond.pyson import Eval, Bool +from trytond.pyson import Bool, Eval from trytond.transaction import Transaction