diff --git a/__init__.py b/__init__.py index e7134da..e69de29 100644 --- a/__init__.py +++ b/__init__.py @@ -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') diff --git a/tryton.cfg b/tryton.cfg index 88bc3ae..6f16967 100644 --- a/tryton.cfg +++ b/tryton.cfg @@ -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