Odoo Help


How to initialize product quantity available equal to quantity on hand ?

on 1/2/15, 4:12 AM 2,895 views

We were doing some testing on odoo 8,  today we decided to update all the products to the actual product quantity.  

Sales> Products> Choose product >Inventory > Click update at "Quantity On Hand" and update the number.

However due to the previous testing the Quantity Available is not equal to quantity on hand. Is there a way to clean up the mess but still keep the quantity on hand? please help.

if u update via odoo UI it will automatically update both quantity on hand and quantity available to same number..

on 1/2/15, 4:41 AM

Not really if I have pending incoming or out going qty, I just need to remove those via sql but must not affect the quantity on hand?

on 1/2/15, 6:55 AM

instead of cancellation one by one, is there a way to remove them in bulk?

on 1/3/15, 1:52 AM
On 8/10/16, 4:47 AM

Thanks a lot for this info. Solved my problem.





| 6 5 7
Lodz, Poland

On 1/2/15, 7:30 AM

Probably you have active Procurements or Stock Moves. If you cancel all (first procurements), Quantity Available should be equal to Quantity on hand.


Sudhir Arya (ERP Harbor Consulting Services)

--Sudhir Arya (ERP Harbor Consulting Services)--
| 6 8 8
Ahmedabad, India
--Sudhir Arya (ERP Harbor Consulting Services)--

• Co-Founder & Co-Owner at ERP Harbor Consulting Services

• ERP Consultant / ERP Customization / TechnoFunctional Expert

• Sound knowledge in Python, Odoo (Open ERP), XML, PostgreSQL

• Domain knowledge of Sale Management, Purchase Management, Warehouse Management, Manufacturing, Multi Company Configuration & Management, HR Management, Medical Management, Construction Management, Education Management, Point of Sale, Third Party Integrations

• Positive attitude and quick Learner

• Good analytical skill, quick bug and issue tracing and find the solution

• Good knowledge and experience in payment gateway integration with Odoo

• Ready to accept new challenges

• Active Memeber On Stackoverflow 




Sudhir Arya
ERP Harbor Consulting Services
Sudhir Arya (ERP Harbor Consulting Services)
On 1/2/15, 4:03 PM

Hello JC,

For that you should cancel all the stock moves which are not done (which are in between progress states) of related products.

Either you can cancel them manually or can run following sql query from postgres.

delete from stock_move where state not in ('draft', 'cancel')

Sql delete query will work but its not a good option, but you can use it if you want to.

Sudhir Arya (ERP Harbor Consulting Services)
on 1/3/15, 1:51 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: 1/2/15, 4:12 AM
Seen: 2895 times
Last updated: 8/10/16, 4:47 AM