2014-12-02 12:54:39 +01:00
|
|
|
# This file is part of Tryton. The COPYRIGHT file at the top level of
|
|
|
|
|
# this repository contains the full copyright notices and license terms.
|
2008-10-25 16:49:15 +02:00
|
|
|
|
2012-09-24 22:17:32 +02:00
|
|
|
from trytond.pool import Pool
|
2011-12-14 17:04:11 +01:00
|
|
|
from .payment_term import *
|
|
|
|
|
from .invoice import *
|
2018-02-19 19:15:24 +01:00
|
|
|
from . import party
|
2011-12-14 17:04:11 +01:00
|
|
|
from .account import *
|
2012-09-24 22:17:32 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
def register():
|
|
|
|
|
Pool.register(
|
|
|
|
|
PaymentTerm,
|
|
|
|
|
PaymentTermLine,
|
2015-03-02 23:28:12 +01:00
|
|
|
PaymentTermLineRelativeDelta,
|
2015-03-02 23:21:06 +01:00
|
|
|
TestPaymentTermView,
|
|
|
|
|
TestPaymentTermViewResult,
|
2012-09-24 22:17:32 +02:00
|
|
|
Invoice,
|
|
|
|
|
InvoicePaymentLine,
|
|
|
|
|
InvoiceLine,
|
|
|
|
|
InvoiceLineTax,
|
|
|
|
|
InvoiceTax,
|
|
|
|
|
PayInvoiceStart,
|
|
|
|
|
PayInvoiceAsk,
|
|
|
|
|
CreditInvoiceStart,
|
2018-02-19 19:15:24 +01:00
|
|
|
party.Address,
|
|
|
|
|
party.ContactMechanism,
|
|
|
|
|
party.Party,
|
|
|
|
|
party.PartyPaymentTerm,
|
2017-03-30 09:45:15 +02:00
|
|
|
InvoiceSequence,
|
|
|
|
|
# Match pattern migration fallbacks to Fiscalyear values so Period
|
|
|
|
|
# must be registered before Fiscalyear
|
2012-09-24 22:17:32 +02:00
|
|
|
Period,
|
2017-03-30 09:45:15 +02:00
|
|
|
FiscalYear,
|
2012-09-29 15:34:34 +02:00
|
|
|
Move,
|
2018-03-24 15:29:47 +01:00
|
|
|
MoveLine,
|
2012-09-24 22:17:32 +02:00
|
|
|
Reconciliation,
|
2018-09-01 11:21:06 +02:00
|
|
|
PaymentMethod,
|
2012-09-24 22:17:32 +02:00
|
|
|
module='account_invoice', type_='model')
|
|
|
|
|
Pool.register(
|
2015-03-02 23:21:06 +01:00
|
|
|
TestPaymentTerm,
|
2012-09-24 22:17:32 +02:00
|
|
|
PayInvoice,
|
|
|
|
|
CreditInvoice,
|
2018-02-19 19:15:24 +01:00
|
|
|
party.PartyReplace,
|
2018-03-24 00:05:23 +01:00
|
|
|
party.PartyErase,
|
2017-09-28 11:27:19 +02:00
|
|
|
RenewFiscalYear,
|
2012-09-24 22:17:32 +02:00
|
|
|
module='account_invoice', type_='wizard')
|
|
|
|
|
Pool.register(
|
|
|
|
|
InvoiceReport,
|
|
|
|
|
module='account_invoice', type_='report')
|