Files
tryton/__init__.py
T
Cédric Krier 7b14095c22 Improve payment management
* Ensure payments on Invoice does not exceed invoice amount
* Add method to add payments on Invoice
* Update scenario to set period in context for Tax Code sum

issue7139
review44011002
2018-03-24 15:29:47 +01:00

50 lines
1.3 KiB
Python

# 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_term import *
from .invoice import *
from . import party
from .account import *
def register():
Pool.register(
PaymentTerm,
PaymentTermLine,
PaymentTermLineRelativeDelta,
TestPaymentTermView,
TestPaymentTermViewResult,
Invoice,
InvoicePaymentLine,
InvoiceLine,
InvoiceLineTax,
InvoiceTax,
PayInvoiceStart,
PayInvoiceAsk,
CreditInvoiceStart,
party.Address,
party.ContactMechanism,
party.Party,
party.PartyPaymentTerm,
InvoiceSequence,
# Match pattern migration fallbacks to Fiscalyear values so Period
# must be registered before Fiscalyear
Period,
FiscalYear,
Move,
MoveLine,
Reconciliation,
module='account_invoice', type_='model')
Pool.register(
TestPaymentTerm,
PayInvoice,
CreditInvoice,
party.PartyReplace,
party.PartyErase,
RenewFiscalYear,
module='account_invoice', type_='wizard')
Pool.register(
InvoiceReport,
module='account_invoice', type_='report')