move register from __init__ to tryton.cfg
This commit is contained in:
18
__init__.py
18
__init__.py
@@ -1,18 +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 sale
|
||||
__all__ = ['register']
|
||||
|
||||
|
||||
def register():
|
||||
Pool.register(
|
||||
sale.Sale,
|
||||
sale.SaleLine,
|
||||
sale.SaleLineDeleted,
|
||||
module='sale_line_delete_log', type_='model')
|
||||
Pool.register(
|
||||
module='sale_line_delete_log', type_='wizard')
|
||||
Pool.register(
|
||||
module='sale_line_delete_log', type_='report')
|
||||
|
||||
Reference in New Issue
Block a user