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

How to compute Product Quantity on Hand?

By
Eyob Gebretinsae
on 12/18/14, 2:07 AM 901 views

I need to devlope a custome moudle that subtract and add product(material) quantity on hand based on users form. My Question is how to retrive a single value from Qunatity on Hand cell and update the value to the cell. Just for python method or function.

1

Ivan

--Ivan--
3210
| 5 3 6
Jakarta, Indonesia
--Ivan--
Ivan
On 12/18/14, 2:40 AM

If you are talking about Product's quantity on hand, it can be retrieved from qty_available (Quantity On Hand) field of the Product.  It is a calculated field.  To update, you cannot directly update the qty_available field, because it is a calculated field.  You need to actually create a stock.move to account for the quantity difference.  One mechansim that Odoo has provided for your is through Physical Inventory.  Another way it from the Update button next to the qty_available field which in turn will call the stock.change.product.qty wizard (odoo/addons/stock/wizard/stock_change_product_qty.py) that will create the new stock.move.

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: 12/18/14, 2:07 AM
Seen: 901 times
Last updated: 3/16/15, 8:10 AM