I'm trying to update context from within class DataSet(http.Controller) (web module)
I want the do_search_read method to change the context of the caller. However, although everything seems to be fine, the context is not updated.
Here's my code:
if model == 'mymodel':
request.context['result_ids'] = [x.product_tmpl_id.id for x in Model.browse(aux)]
request.context is, indeed, updated but the caller's context remains the same.
NOTE: I've already tried the "antidote" to the "frozen dictionary" problem.
The code here is just that an example.