Follow isort formatting
issue10928
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
[settings]
|
||||
multi_line_output=4
|
||||
known_first_party=trytond
|
||||
+1
-5
@@ -2,11 +2,7 @@
|
||||
# this repository contains the full copyright notices and license terms.
|
||||
from trytond.pool import Pool
|
||||
|
||||
from . import product
|
||||
from . import sale
|
||||
from . import purchase
|
||||
from . import stock
|
||||
from . import account
|
||||
from . import account, product, purchase, sale, stock
|
||||
|
||||
__all__ = ['register']
|
||||
|
||||
|
||||
+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 import ModelView, Workflow
|
||||
from trytond.pool import PoolMeta, Pool
|
||||
from trytond.pool import Pool, PoolMeta
|
||||
|
||||
|
||||
class Invoice(metaclass=PoolMeta):
|
||||
|
||||
+3
-4
@@ -3,11 +3,10 @@
|
||||
from decimal import Decimal
|
||||
|
||||
from trytond.model import (
|
||||
ModelView, ModelSQL, ModelStorage, sequence_ordered, fields)
|
||||
from trytond.pyson import Eval, If, Bool
|
||||
from trytond.pool import PoolMeta, Pool
|
||||
|
||||
ModelSQL, ModelStorage, ModelView, fields, sequence_ordered)
|
||||
from trytond.modules.product import round_price
|
||||
from trytond.pool import Pool, PoolMeta
|
||||
from trytond.pyson import Bool, Eval, If
|
||||
|
||||
|
||||
class Template(metaclass=PoolMeta):
|
||||
|
||||
+5
-6
@@ -1,16 +1,15 @@
|
||||
# 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.i18n import gettext
|
||||
from trytond.pool import PoolMeta, Pool
|
||||
from trytond.model import ModelSQL, ModelView, fields
|
||||
|
||||
from trytond.modules.product import round_price
|
||||
from trytond.pool import Pool, PoolMeta
|
||||
|
||||
from .common import (
|
||||
AmendmentLineMixin, get_shipments_returns, handle_shipment_exception_mixin,
|
||||
order_line_component_mixin, order_line_mixin, order_mixin,
|
||||
search_shipments_returns)
|
||||
from .product import ComponentMixin
|
||||
from .common import order_mixin, order_line_mixin, order_line_component_mixin
|
||||
from .common import get_shipments_returns, search_shipments_returns
|
||||
from .common import handle_shipment_exception_mixin
|
||||
from .common import AmendmentLineMixin
|
||||
|
||||
|
||||
class Purchase(order_mixin('purchase'), metaclass=PoolMeta):
|
||||
|
||||
@@ -1,16 +1,15 @@
|
||||
# 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.i18n import gettext
|
||||
from trytond.pool import PoolMeta, Pool
|
||||
from trytond.model import ModelSQL, ModelView, fields
|
||||
|
||||
from trytond.modules.product import round_price
|
||||
from trytond.pool import Pool, PoolMeta
|
||||
|
||||
from .common import (
|
||||
AmendmentLineMixin, get_shipments_returns, handle_shipment_exception_mixin,
|
||||
order_line_component_mixin, order_line_mixin, order_mixin,
|
||||
search_shipments_returns)
|
||||
from .product import ComponentMixin
|
||||
from .common import order_mixin, order_line_mixin, order_line_component_mixin
|
||||
from .common import get_shipments_returns, search_shipments_returns
|
||||
from .common import handle_shipment_exception_mixin
|
||||
from .common import AmendmentLineMixin
|
||||
|
||||
|
||||
class Sale(order_mixin('sale'), metaclass=PoolMeta):
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -3,10 +3,9 @@
|
||||
from decimal import Decimal
|
||||
|
||||
from trytond.model import fields
|
||||
from trytond.pool import PoolMeta, Pool
|
||||
from trytond.transaction import Transaction
|
||||
|
||||
from trytond.modules.product import round_price
|
||||
from trytond.pool import Pool, PoolMeta
|
||||
from trytond.transaction import Transaction
|
||||
|
||||
|
||||
class Move(metaclass=PoolMeta):
|
||||
|
||||
+2
-1
@@ -2,7 +2,8 @@
|
||||
# this repository contains the full copyright notices and license terms.
|
||||
|
||||
try:
|
||||
from trytond.modules.product_kit.tests.test_product_kit import suite # noqa: E501
|
||||
from trytond.modules.product_kit.tests.test_product_kit import \
|
||||
suite # noqa: E501
|
||||
except ImportError:
|
||||
from .test_product_kit 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 unittest
|
||||
|
||||
from trytond.tests.test_tryton import ModuleTestCase
|
||||
from trytond.tests.test_tryton import suite as test_suite
|
||||
from trytond.tests.test_tryton import doctest_teardown
|
||||
from trytond.tests.test_tryton import doctest_checker
|
||||
from trytond.modules.company.tests import CompanyTestMixin
|
||||
from trytond.tests.test_tryton import (
|
||||
ModuleTestCase, doctest_checker, doctest_teardown)
|
||||
from trytond.tests.test_tryton import suite as test_suite
|
||||
|
||||
|
||||
class ProductKitTestCase(CompanyTestMixin, ModuleTestCase):
|
||||
|
||||
Reference in New Issue
Block a user