From 014fe8abd5a860063efde2ef3b3510eb15c195d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 20 Mar 2018 17:28:55 +0100 Subject: [PATCH] Add depends on Pool.register issue7178 review37051002 --- __init__.py | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/__init__.py b/__init__.py index e67931da7d..f7186f22a2 100644 --- a/__init__.py +++ b/__init__.py @@ -1,27 +1,29 @@ # 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 .payment import * -from .account import * +from . import payment +from . import account from . import party def register(): Pool.register( - Journal, - Group, - Payment, - MoveLine, - ProcessPaymentStart, - PayLineAskJournal, - Configuration, - ConfigurationPaymentGroupSequence, - Invoice, + payment.Journal, + payment.Group, + payment.Payment, + account.MoveLine, + payment.ProcessPaymentStart, + account.PayLineAskJournal, + account.Configuration, + account.ConfigurationPaymentGroupSequence, party.Party, party.PartyPaymentDirectDebit, module='account_payment', type_='model') Pool.register( - ProcessPayment, - PayLine, + account.Invoice, + module='account_payment', type_='model', depends=['account_invoice']) + Pool.register( + payment.ProcessPayment, + account.PayLine, party.PartyReplace, module='account_payment', type_='wizard')