Ics file generation should be possible even when only event is installed as it is a basic feature of events. Moreover we need to be able to generate such files in order to replace the old outlook api used in the event templates, api which is not supported anymore. We decided to use ics files because it is supported by most calendar schedulers hence working with outlook. Linked to task #1853063 closes odoo/odoo#28477
22 lines
564 B
Python
22 lines
564 B
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
# Updating mako environement in order to be able to use slug
|
|
try:
|
|
from odoo.addons.mail.models.mail_template import mako_template_env, mako_safe_template_env
|
|
from odoo.addons.http_routing.models.ir_http import slug
|
|
|
|
mako_template_env.globals.update({
|
|
'slug': slug,
|
|
})
|
|
|
|
mako_safe_template_env.globals.update({
|
|
'slug': slug,
|
|
})
|
|
except ImportError:
|
|
pass
|
|
|
|
from . import controllers
|
|
from . import models
|
|
from . import wizard
|