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.
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 6/21/16, 4:39 PM|
|Seen: 284 times|
|Last updated: 6/22/16, 9:09 AM|