We add the flake8 configuration used so we ensure everyone uses the same. We remove the usage of __all__ for non public API. When possible, we rationalize the class name according to its __name__ and module. issue9082 review297061002
37 lines
1.1 KiB
Python
37 lines
1.1 KiB
Python
# 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 Pool
|
|
from . import opportunity
|
|
from . import configuration
|
|
from . import sale
|
|
from . import party
|
|
from . import account
|
|
from . import product
|
|
from . import company
|
|
|
|
|
|
def register():
|
|
Pool.register(
|
|
opportunity.SaleOpportunity,
|
|
opportunity.SaleOpportunityLine,
|
|
opportunity.SaleOpportunityEmployee,
|
|
opportunity.SaleOpportunityEmployeeContext,
|
|
opportunity.SaleOpportunityMonthly,
|
|
opportunity.SaleOpportunityEmployeeMonthly,
|
|
configuration.Configuration,
|
|
configuration.ConfigurationSequence,
|
|
sale.Sale,
|
|
party.Party,
|
|
party.Address,
|
|
account.PaymentTerm,
|
|
account.PaymentTermLine,
|
|
product.Template,
|
|
product.Product,
|
|
company.Company,
|
|
company.Employee,
|
|
module='sale_opportunity', type_='model')
|
|
Pool.register(
|
|
party.Replace,
|
|
module='sale_opportunity', type_='wizard')
|