summaryrefslogtreecommitdiff
path: root/addons/website_project/controllers/main.py
diff options
context:
space:
mode:
authorThibault Delavallée <tde@odoo.com>2017-06-07 18:13:11 +0200
committerThibault Delavallée <tde@odoo.com>2017-08-08 14:58:49 +0200
commitea27c1b7a341b6f913197a2e8843562c5e71ea52 (patch)
treeedff4bb4b14ba7afea08ce0c92ba609aa5d314fa /addons/website_project/controllers/main.py
parent86aa1b81bcc7452e42c84a995479a59440dab956 (diff)
[MOV] website_portal, portal: move customer portal to portal module
This commit moves the whole customer portal to the portal module. It now completely uses portal and http_routing features and is not dependent on website anymore. An override of web controller is added in portal in order to redirect portal users to /my instead of /web. That way once having the customer portal installed all share users are correctly redirected to their account. All modules defining customer portal templates and controllers are updated accordingly.
Diffstat (limited to 'addons/website_project/controllers/main.py')
-rw-r--r--addons/website_project/controllers/main.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/addons/website_project/controllers/main.py b/addons/website_project/controllers/main.py
index d8716efd9ac..4e29fb1ccf4 100644
--- a/addons/website_project/controllers/main.py
+++ b/addons/website_project/controllers/main.py
@@ -5,13 +5,12 @@ from collections import OrderedDict
from odoo import http, _
from odoo.http import request
-
-from odoo.addons.website_portal.controllers.main import website_account, get_records_pager
+from odoo.addons.portal.controllers.portal import get_records_pager, CustomerPortal
from odoo.osv.expression import OR
from odoo.tools import pycompat
-class WebsiteAccount(website_account):
+class WebsiteAccount(CustomerPortal):
def _prepare_portal_layout_values(self):
values = super(WebsiteAccount, self)._prepare_portal_layout_values()