move register from __init__ to tryton.cfg

This commit is contained in:
2026-07-02 19:21:02 -05:00
parent 96753b23a9
commit 124c9e9028
2 changed files with 6 additions and 18 deletions

View File

@@ -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')