Odoo Help


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

on 1/2/15, 4:12 AM 2,239 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 4 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 (SA)

--Sudhir Arya (SA)--
| 6 8 8
Ahmedabad, India
--Sudhir Arya (SA)--

Working as an OpenERP/Odoo developer and a Team Leader 

Top 5 Odoo contributor On Stackoverflow




Sudhir Arya (SA)
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 (SA)
on 1/3/15, 1:51 AM

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 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: 2239 times
Last updated: 8/10/16, 4:47 AM