Add depends on Pool.register

issue7178
review37051002
This commit is contained in:
Cédric Krier committed 2018-03-20 17:28:55 +01:00
1 parent af87a658d4
commit 014fe8abd5
1 file changed
+15 -13
+15 -13
View File
@@ -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')