Files
odoo_source/addons/portal/__init__.py
T
Thibault Delavallée 822f468059 [MOV] mail: move rendering code to mail render mixin
We also have to update code calling directly the rendering itself. Indeed
some code bits does some rendering directly on jinja-enabled input and not
through templates. Those calls have to be updated accordingly.

LINKS

Task ID 1963529
Community PR odoo/odoo#32397
2020-03-24 10:24:19 +00:00

22 lines
572 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_render_mixin import jinja_template_env, jinja_safe_template_env
from odoo.addons.http_routing.models.ir_http import slug
jinja_template_env.globals.update({
'slug': slug,
})
jinja_safe_template_env.globals.update({
'slug': slug,
})
except ImportError:
pass
from . import controllers
from . import models
from . import wizard