summaryrefslogtreecommitdiff
path: root/addons/website/tests/__init__.py
diff options
context:
space:
mode:
authorJeremy Kersten <jke@odoo.com>2019-06-13 09:26:39 +0000
committerJeremy Kersten <jke@odoo.com>2019-06-13 09:26:54 +0000
commitf727cd2645deeb43bcfe1e5643dd3477a6076ab9 (patch)
treeeb430a54ce1cbfaad60cb7f526507e040e19059a /addons/website/tests/__init__.py
parent22437e331a60c81a80d619c075a9d516e980c078 (diff)
[IMP] base, model, website[*]: add get_base_url helper
Before this commit, when we want to make an external url, we need to know if the record is related to a specific website or not, and choose base_url or website domain. Now each model have a fonction get_base_url (public to be callable from email template, ...) and website override this function to add the website domain if the record is website specific. closes odoo/odoo#34089 Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
Diffstat (limited to 'addons/website/tests/__init__.py')
-rw-r--r--addons/website/tests/__init__.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/website/tests/__init__.py b/addons/website/tests/__init__.py
index f1f4a459cee..bfc1659e9b0 100644
--- a/addons/website/tests/__init__.py
+++ b/addons/website/tests/__init__.py
@@ -2,6 +2,7 @@
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from . import test_converter
+from . import test_base_url
from . import test_get_current_website
from . import test_qweb
from . import test_crawl