move register from __init__ to tryton.cfg

This commit is contained in:
2026-07-02 19:21:02 -05:00
parent f4b99e0ea9
commit 6ad6f9965b
2 changed files with 28 additions and 39 deletions

View File

@@ -1,39 +0,0 @@
# This file is part of the sale_payment module for 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 device
from . import sale
from . import statement
from . import user
from . import configuration_statement
def register():
Pool.register(
statement.Journal,
statement.Statement,
statement.Line,
statement.StatementLine,
statement.LinesInvoiceToPay,
device.SaleDevice,
user.User,
device.SaleDeviceStatementJournal,
sale.Sale,
sale.SalePaymentForm,
sale.ChangePaymentMethodForm,
statement.OpenStatementStart,
statement.OpenStatementDone,
statement.CloseStatementStart,
statement.CloseStatementDone,
statement.PayInvoiceSupplierStart,
configuration_statement.Configuration,
module='sale_payment', type_='model')
Pool.register(
sale.WizardSalePayment,
sale.ChangePaymentMethod,
sale.WizardSaleReconcile,
statement.OpenStatement,
statement.CloseStatement,
statement.PayInvoiceSupplier,
module='sale_payment', type_='wizard')

View File

@@ -9,3 +9,31 @@ xml:
sale.xml
user.xml
message.xml
[register]
model:
statement.Journal
statement.Statement
statement.Line
statement.StatementLine
statement.LinesInvoiceToPay
device.SaleDevice
user.User
device.SaleDeviceStatementJournal
sale.Sale
sale.SalePaymentForm
sale.ChangePaymentMethodForm
statement.OpenStatementStart
statement.OpenStatementDone
statement.CloseStatementStart
statement.CloseStatementDone
statement.PayInvoiceSupplierStart
configuration_statement.Configuration
wizards:
sale.WizardSalePayment
sale.ChangePaymentMethod
sale.WizardSaleReconcile
statement.OpenStatement
statement.CloseStatement
statement.PayInvoiceSupplier