move register from __init__ to tryton.cfg
This commit is contained in:
22
__init__.py
22
__init__.py
@@ -1,22 +0,0 @@
|
||||
# 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 invoice, purchase, sale
|
||||
|
||||
__all__ = ['register']
|
||||
|
||||
|
||||
def register():
|
||||
Pool.register(
|
||||
purchase.Purchase,
|
||||
purchase.PurchaseLine,
|
||||
sale.Sale,
|
||||
sale.SaleLine,
|
||||
invoice.Invoice,
|
||||
invoice.InvoiceLine,
|
||||
module='analytic_operations', type_='model')
|
||||
Pool.register(
|
||||
module='analytic_operations', type_='wizard')
|
||||
Pool.register(
|
||||
module='analytic_operations', type_='report')
|
||||
|
||||
Reference in New Issue
Block a user