summaryrefslogtreecommitdiff
path: root/addons/website_livechat
diff options
context:
space:
mode:
authorThibault Delavallée <tde@odoo.com>2017-05-19 12:51:48 +0200
committerThibault Delavallée <tde@odoo.com>2017-08-08 14:23:58 +0200
commit014b5c9f7c2f0a5c9741569525364ff9cd6cb4cc (patch)
tree20defe1809c23177e60c5da655c3a0d959e73cb0 /addons/website_livechat
parentda8d418ff08aa55c7378887c9a5a06a5d12b72c0 (diff)
[MOV] website, http_routing: move (un)slug support to http_routing
Slug and unslug API is now available in http_routing. Indeed there is no link to any website or any reason to not support slufigied URLs when website is not installed. A new unslug_url method is added as a tool coming from an embedded method from website. Doing it allows to have all slug related methods defined at the same point. Support of slug and unslug in qweb rendering is also moved directly in http_routing version of ir_ui_view instead of website inheritance. This is done in order to keep things coherent. Some code from website about ModelConverter is also moved. Indeed both versions of ir_http uses some kind of placeholder to store the uid when converting urls to python. This commit unifies it by using the website one directly in base to simplify the override. This commit also updates all module importing slug. Enterprise modules will have to be updated, see related commit.
Diffstat (limited to 'addons/website_livechat')
-rw-r--r--addons/website_livechat/models/im_livechat.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/website_livechat/models/im_livechat.py b/addons/website_livechat/models/im_livechat.py
index 17ad3f89a12..6dc57e0845b 100644
--- a/addons/website_livechat/models/im_livechat.py
+++ b/addons/website_livechat/models/im_livechat.py
@@ -2,7 +2,7 @@
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import api, models, fields
-from odoo.addons.website.models.website import slug
+from odoo.addons.http_routing.models.ir_http import slug
from odoo.tools.translate import html_translate