Odoo Help


How can i get Quantity on hand of perticular product based on location, product_product_id?

on 8/11/14, 5:56 AM 1,079 views

I need a function that gives QOH of particular product. like def getQOH(product_product_id, stock_Location_id){

return qoh



Hi Samba,

you can use the following method to get the stock. That methos is located into stock module and in stock.py file.

1) To get stock for a particular location : _product_get

2) To get stock for a particular location and its all child location : _product_all_get

3) To get Virtual stock for a particular location : _product_virtual_get

On 9/30/14, 3:19 AM

Mr. Samba where did you put this?

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

1 follower(s)


Asked: 8/11/14, 5:56 AM
Seen: 1079 times
Last updated: 3/16/15, 8:10 AM