trytonpsk-sale_web_channel/__init__.py

43 lines
1.2 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 . import sale
from . import party
from . import web_channel
from . import mercado_libre
from . import shopify
from . import rappi
from . import api_log
from . import ir
from . import routes
__all__ = ['register', 'routes']
def register():
Pool.register(
web_channel.SaleWebChannel,
mercado_libre.MercadoLibre,
shopify.Shopify,
rappi.Rappi,
sale.Sale,
sale.SaleForChannelStart,
web_channel.SynchronizeChannelOrdersStart,
web_channel.SynchronizeChannelOrdersDone,
web_channel.FinishInvoicesStart,
party.Party,
api_log.ApiLog,
ir.Cron,
module='sale_web_channel', type_='model')
Pool.register(
sale.SaleUploadInvoice,
sale.SaleForChannel,
web_channel.SynchronizeChannelOrders,
web_channel.FinishInvoices,
web_channel.SynchronizeMenuWizard,
module='sale_web_channel', type_='wizard')
Pool.register(
sale.SaleForChannelReport,
module='sale_web_channel', type_='report')