Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
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.
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 6/21/16, 4:39 PM|
|Seen: 733 times|
|Last updated: 6/22/16, 9:09 AM|