Odoo Help


get selected product id

on 11/20/14, 4:17 AM 739 views


am trying to get the selected product ID in stock.move , if you started to make delivery order, you should add items and each item present a product , so once you click add item , a window will be apeared to select the product .

in this windows , how can i get the selected product id from Product_id field which is many2one .

i tried to print Product_id , i will get " product.product() " as printed string ?!



@moayad In which method you want product_id? do you need it in on_change method?

Emipro Technologies Pvt. Ltd.
on 11/20/14, 4:30 AM

what ever , i need the product id to retrieve some values to the selected product . let's say yes i want it in 'on_change' method

on 11/20/14, 4:32 AM

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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

2 follower(s)


Asked: 11/20/14, 4:17 AM
Seen: 739 times
Last updated: 3/16/15, 8:10 AM