Follow isort formatting
issue10928
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
[settings]
|
||||
multi_line_output=4
|
||||
known_first_party=trytond
|
||||
+2
-3
@@ -2,9 +2,8 @@
|
||||
# this repository contains the full copyright notices and license terms.
|
||||
|
||||
from trytond.pool import Pool
|
||||
from . import sale
|
||||
from . import account
|
||||
from . import stock
|
||||
|
||||
from . import account, sale, stock
|
||||
|
||||
|
||||
def register():
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@
|
||||
|
||||
from trytond.model import fields
|
||||
from trytond.pool import Pool, PoolMeta
|
||||
from trytond.pyson import If, Eval, Bool
|
||||
from trytond.pyson import Bool, Eval, If
|
||||
|
||||
|
||||
def AccountTypeMixin(template=False):
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
# 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.model.exceptions import ValidationError, AccessError
|
||||
from trytond.model.exceptions import AccessError, ValidationError
|
||||
|
||||
|
||||
class FormulaError(ValidationError):
|
||||
|
||||
@@ -1,19 +1,20 @@
|
||||
# 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 decimal import Decimal
|
||||
from simpleeval import simple_eval
|
||||
from itertools import chain
|
||||
|
||||
from simpleeval import simple_eval
|
||||
|
||||
from trytond.i18n import gettext
|
||||
from trytond.pool import Pool, PoolMeta
|
||||
from trytond.model import (
|
||||
ModelSQL, ModelView, Workflow, DeactivableMixin, fields)
|
||||
from trytond.pyson import Eval, Bool
|
||||
from trytond.tools import decistmt
|
||||
from trytond.transaction import Transaction
|
||||
DeactivableMixin, ModelSQL, ModelView, Workflow, fields)
|
||||
from trytond.modules.company.model import (
|
||||
CompanyMultiValueMixin, CompanyValueMixin)
|
||||
from trytond.modules.currency.fields import Monetary
|
||||
from trytond.pool import Pool, PoolMeta
|
||||
from trytond.pyson import Bool, Eval
|
||||
from trytond.tools import decistmt
|
||||
from trytond.transaction import Transaction
|
||||
|
||||
from .exceptions import FormulaError
|
||||
|
||||
|
||||
@@ -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):
|
||||
|
||||
+2
-1
@@ -2,7 +2,8 @@
|
||||
# this repository contains the full copyright notices and license terms.
|
||||
|
||||
try:
|
||||
from trytond.modules.sale_advance_payment.tests.test_sale_advance_payment import suite # noqa: E501
|
||||
from trytond.modules.sale_advance_payment.tests.test_sale_advance_payment import \
|
||||
suite # noqa: E501
|
||||
except ImportError:
|
||||
from .test_sale_advance_payment import suite
|
||||
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
# 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 unittest
|
||||
|
||||
from trytond.tests.test_tryton import (
|
||||
ModuleTestCase, doctest_checker, doctest_teardown)
|
||||
from trytond.tests.test_tryton import suite as test_suite
|
||||
from trytond.tests.test_tryton import ModuleTestCase
|
||||
from trytond.tests.test_tryton import doctest_teardown, doctest_checker
|
||||
|
||||
|
||||
class SaleAdvancePaymentTestCase(ModuleTestCase):
|
||||
|
||||
Reference in New Issue
Block a user