diff --git a/addons/web/controllers/main.py b/addons/web/controllers/main.py index 31a2c52f99d..6dea47c153a 100644 --- a/addons/web/controllers/main.py +++ b/addons/web/controllers/main.py @@ -1716,7 +1716,7 @@ class ExportFormat(object): params) Model = request.session.model(model) - context = dict(req.context or {}, **params.get('context', {})) + context = dict(request.context or {}, **params.get('context', {})) ids = ids or Model.search(domain, 0, False, False, context) field_names = map(operator.itemgetter('name'), fields)