Skip to content
Permalink
Browse files

[REM] website: remove useless method

Was introduced with bae7e32 for `website_version` which doesn't exist
anymore.
  • Loading branch information
rdeodoo committed Mar 24, 2020
1 parent d77a486 commit 3c4c9a9bcbffb45e7e1b0bb6c6201508c888bf74
Showing with 1 addition and 5 deletions.
  1. +1 −1 addons/website/models/ir_http.py
  2. +0 −4 addons/website/models/website_page.py
@@ -246,7 +246,7 @@ def _serve_page(cls):
request.website.menu_id
if page and (request.website.is_publisher() or page.is_visible):
_, ext = os.path.splitext(req_page)
return request.render(page.get_view_identifier(), {
return request.render(page.view_id.id, {
'deletable': True,
'main_object': page,
}, mimetype=_guess_mimetype(ext))
@@ -58,10 +58,6 @@ def _is_most_specific_page(self, page_to_test):

return most_specific_page == page_to_test

def get_view_identifier(self):
""" Get identifier of this page view that may be used to render it """
return self.view_id.id

def get_page_properties(self):
self.ensure_one()
res = self.read([

0 comments on commit 3c4c9a9

Please sign in to comment.
You can’t perform that action at this time.