Files
tryton/__init__.py
T
Cédric Krier 7eeb44e1f2 Simplify cron
issue8201
issue6117
issue2286
2019-04-12 15:59:24 +02:00

36 lines
989 B
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 ir
from . import marketing_automation
from . import web
from . import party
from . import sale
from . import routes
__all__ = ['register', 'routes']
def register():
Pool.register(
ir.Cron,
marketing_automation.Scenario,
marketing_automation.Activity,
marketing_automation.Record,
marketing_automation.RecordActivity,
web.ShortenedURL,
module='marketing_automation', type_='model')
Pool.register(
party.Party,
module='marketing_automation', type_='model',
depends=['party'])
Pool.register(
sale.Sale,
module='marketing_automation', type_='model',
depends=['sale'])
Pool.register(
marketing_automation.Unsubscribe,
module='marketing_automation', type_='report')