trytond-aeat_sii/__init__.py

38 lines
1.0 KiB
Python
Raw Normal View History

2017-04-28 09:26:42 +02:00
# 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 invoice
from . import aeat
from . import party
from . import company
from . import load_pkcs12
from . import account
2017-06-13 12:57:41 +02:00
from . import aeat_mapping
2017-04-28 09:26:42 +02:00
def register():
Pool.register(
account.TemplateTax,
account.Tax,
2017-04-28 09:26:42 +02:00
party.Party,
company.Company,
2017-04-28 09:26:42 +02:00
invoice.Invoice,
load_pkcs12.LoadPKCS12Start,
2017-04-28 09:26:42 +02:00
aeat.SIIReport,
aeat.SIIReportLine,
2017-06-13 16:57:59 +02:00
aeat.SIIReportLineTax,
2017-06-13 12:57:41 +02:00
aeat_mapping.IssuedTrytonInvoiceMapper,
aeat_mapping.RecievedTrytonInvoiceMapper,
2017-04-28 09:26:42 +02:00
module='aeat_sii', type_='model')
Pool.register(
invoice.Sale,
depends=['sale'],
module='aeat_sii', type_='model')
Pool.register(
invoice.Purchase,
depends=['purchase'],
module='aeat_sii', type_='model')
2017-04-28 09:26:42 +02:00
Pool.register(
load_pkcs12.LoadPKCS12,
2017-04-28 09:26:42 +02:00
module='aeat_sii', type_='wizard')