Odoo Help

Welcome!

This community 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.

0

Any built in function to get quantity on hand of a product in paticular location?

By
samba
on 11/24/14, 2:48 AM 292 views

I have product id and location id in my hand. Is therer any built in function to get quantity on hand of product in that location. Can any one give some small code to get QOH of product in particular location?

0

Ludo - Neobis

--Ludo - Neobis--
2387
| 2 2 5
Hoogvliet, Netherlands
--Ludo - Neobis--

Developer

Ludo - Neobis
On 11/24/14, 3:16 AM

Select a product from the refular product list. On the top of the screen under the "More" button, there should be an option "View stock per location" or something similair.

0

Ivan

--Ivan--
3210
| 5 3 6
Jakarta, Indonesia
--Ivan--
Ivan
On 11/24/14, 4:23 AM

Samba, read the get_product_available method from stock/product.py, it gives you the overview of how to get the quantity of a certain product with various criteria.  Specifically for location, you put in {'location': XXX} into the context when you browse or read the product, then you get the qty_available or virtual_available of the read/browse result.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 11/24/14, 2:48 AM
Seen: 292 times
Last updated: 3/16/15, 8:10 AM