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.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project
- MRP
This question has been flagged
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.
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up| Related Posts | Replies | Views | Activity | |
|---|---|---|---|---|
|
|
0
Sep 15
|
4723 | ||
|
|
1
Dec 24
|
5002 | ||
|
|
2
May 22
|
35480 | ||
|
Expected singleton
Solved
|
|
9
Mar 20
|
43118 | |
|
Colimn invisible
Solved
|
|
1
Nov 19
|
3586 |