From b228f548ca10e61d3b802fa624bdaf8a2f8b11b2 Mon Sep 17 00:00:00 2001 From: Denis Ledoux Date: Wed, 11 Jan 2017 11:03:49 +0100 Subject: [PATCH] [FIX] website: port of rev a98d60cb11ceee31a6bd9d3734d0e4b565e5d677 The forward-port of the above revision missed the conversion to the new api and that `context` had to be replaced by `self.env.context` Fixes #14922 Closes #14923 --- addons/website/models/website.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/website/models/website.py b/addons/website/models/website.py index 457ee04b978..0a64d587bcb 100644 --- a/addons/website/models/website.py +++ b/addons/website/models/website.py @@ -526,7 +526,7 @@ class Website(models.Model): of the same. :rtype: list({name: str, url: str}) """ - request.context = dict(request.context, **context) + request.context = dict(request.context, **self.env.context) router = request.httprequest.app.get_db_router(request.db) # Force enumeration to be performed as public user url_set = set()