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 created two radio inputs on the `/shop/product/<product>` page.
When the user clicks the `Add to cart` button, the value of the selected radio is passed to the controller, to the function `cart_update`.
There, I can check which radio input was checked, then put some value in the `request.context` dictionnary for example.
However, in the model functions called by the original `cart_update` function, the context (`self.env.context`) does not show my value.
So, how can I notify model functions such as `_cart_find_product_line`, without redefining completly the controller function `cart_update`, which is a very bad practice ?
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: 11/26/15, 10:09 AM|
|Seen: 1246 times|
|Last updated: 11/26/15, 11:26 AM|