portal/__init__.py
Данил Воробьев c5833477ca initial commit
2024-05-03 09:57:08 +00:00

18 lines
452 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.tools.rendering_tools import template_env_globals
from odoo.addons.http_routing.models.ir_http import slug
template_env_globals.update({
'slug': slug
})
except ImportError:
pass
from . import controllers
from . import models
from . import wizard