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 would like to know if is it possible to get the value of the current order_id in the function product_id_change. Need I to modify the parameters of the function and send the value of my order_id? Is it possible to get this value directly into the function?
Thanks a lot,
It depends, as you can see on product_id_change you have ids as a parameter, if you have that parameter you can get the order_id of that order_line. But, if you are creating a new order and you call product_id_change you don't have order_id because this doesn't exist on the database. In order to get the order_id you have to save your order.
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: 1/13/14, 4:56 PM|
|Seen: 1104 times|
|Last updated: 3/16/15, 8:10 AM|