Follow isort formatting
issue10928
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
[settings]
|
||||
multi_line_output=4
|
||||
known_first_party=trytond
|
||||
+2
-4
@@ -2,10 +2,8 @@
|
||||
# this repository contains the full copyright notices and license terms.
|
||||
|
||||
from trytond.pool import Pool
|
||||
from . import journal
|
||||
from . import statement
|
||||
from . import account
|
||||
from . import party
|
||||
|
||||
from . import account, journal, party, statement
|
||||
|
||||
|
||||
def register():
|
||||
|
||||
+3
-4
@@ -7,11 +7,10 @@ from sql.operators import Concat
|
||||
|
||||
from trytond.i18n import gettext
|
||||
from trytond.model import ModelView
|
||||
from trytond.pool import PoolMeta, Pool
|
||||
from trytond.transaction import Transaction
|
||||
from trytond.tools import grouped_slice, reduce_ids
|
||||
|
||||
from trytond.modules.account.exceptions import PostError
|
||||
from trytond.pool import Pool, PoolMeta
|
||||
from trytond.tools import grouped_slice, reduce_ids
|
||||
from trytond.transaction import Transaction
|
||||
|
||||
|
||||
class Journal(metaclass=PoolMeta):
|
||||
|
||||
+2
-2
@@ -3,10 +3,10 @@
|
||||
from sql import Table
|
||||
|
||||
from trytond import backend
|
||||
from trytond.model import ModelView, ModelSQL, DeactivableMixin, fields, Unique
|
||||
from trytond.transaction import Transaction
|
||||
from trytond.model import DeactivableMixin, ModelSQL, ModelView, Unique, fields
|
||||
from trytond.pool import Pool
|
||||
from trytond.pyson import Eval
|
||||
from trytond.transaction import Transaction
|
||||
|
||||
|
||||
class Journal(DeactivableMixin, ModelSQL, ModelView):
|
||||
|
||||
@@ -6,7 +6,8 @@ import io
|
||||
import os
|
||||
import re
|
||||
from configparser import ConfigParser
|
||||
from setuptools import setup, find_packages
|
||||
|
||||
from setuptools import find_packages, setup
|
||||
|
||||
|
||||
def read(fname):
|
||||
|
||||
+11
-10
@@ -1,28 +1,29 @@
|
||||
# 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 collections import defaultdict, namedtuple
|
||||
from decimal import Decimal
|
||||
from collections import namedtuple, defaultdict
|
||||
from itertools import groupby
|
||||
|
||||
from sql import Null
|
||||
from sql.conditionals import Coalesce
|
||||
from sql.aggregate import Max, Sum
|
||||
from sql.conditionals import Coalesce
|
||||
|
||||
from trytond.config import config
|
||||
from trytond.i18n import gettext
|
||||
from trytond.model import Workflow, ModelView, ModelSQL, fields, Check, \
|
||||
sequence_ordered, DictSchemaMixin
|
||||
from trytond.model import (
|
||||
Check, DictSchemaMixin, ModelSQL, ModelView, Workflow, fields,
|
||||
sequence_ordered)
|
||||
from trytond.model.exceptions import AccessError
|
||||
from trytond.pyson import Eval, If, Bool
|
||||
from trytond.transaction import Transaction
|
||||
from trytond.pool import Pool
|
||||
from trytond.rpc import RPC
|
||||
from trytond.wizard import Wizard, StateView, StateAction, Button
|
||||
from trytond.modules.company import CompanyReport
|
||||
from trytond.modules.currency.fields import Monetary
|
||||
from trytond.pool import Pool
|
||||
from trytond.pyson import Bool, Eval, If
|
||||
from trytond.rpc import RPC
|
||||
from trytond.transaction import Transaction
|
||||
from trytond.wizard import Button, StateAction, StateView, Wizard
|
||||
|
||||
from .exceptions import (
|
||||
StatementValidateError, StatementValidateWarning, StatementPostError)
|
||||
StatementPostError, StatementValidateError, StatementValidateWarning)
|
||||
|
||||
if config.getboolean('account_statement', 'filestore', default=False):
|
||||
file_id = 'origin_file_id'
|
||||
|
||||
+2
-1
@@ -2,7 +2,8 @@
|
||||
# this repository contains the full copyright notices and license terms.
|
||||
|
||||
try:
|
||||
from trytond.modules.account_statement.tests.test_account_statement import suite # noqa: E501
|
||||
from trytond.modules.account_statement.tests.test_account_statement import \
|
||||
suite # noqa: E501
|
||||
except ImportError:
|
||||
from .test_account_statement import suite
|
||||
|
||||
|
||||
@@ -1,13 +1,12 @@
|
||||
# This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
# this repository contains the full copyright notices and license terms.
|
||||
import unittest
|
||||
import doctest
|
||||
import trytond.tests.test_tryton
|
||||
from trytond.tests.test_tryton import ModuleTestCase
|
||||
from trytond.tests.test_tryton import doctest_teardown
|
||||
from trytond.tests.test_tryton import doctest_checker
|
||||
import unittest
|
||||
|
||||
import trytond.tests.test_tryton
|
||||
from trytond.modules.company.tests import CompanyTestMixin
|
||||
from trytond.tests.test_tryton import (
|
||||
ModuleTestCase, doctest_checker, doctest_teardown)
|
||||
|
||||
|
||||
class AccountStatementTestCase(CompanyTestMixin, ModuleTestCase):
|
||||
|
||||
Reference in New Issue
Block a user