Odoo Help

0

Qty calculated twice -->qty_available now too low...

By
TT
on 9/5/16, 5:25 AM 345 views

Hi there

I have the following problem: I have an old order (in paper form on my desk, nothing in odoo yet). The order has already been shipped, therefore the current quantity on hand of the Product ordered is including the order shipped. 

Now I have entered this quantity in odoo. If I now enter the order into odoo, mark it as paid + shipped, it generates a new stock movement. Now the qty is too low, because the product got substracted once offline on paper and once in odoo.

Is there a possibility to have all orders before a certain date add the product they ordered to the (now too low) stock, so it is correct again? Maybe someone could point me in the right direrction/has some python code for the server action?


Example:

Inventory (on paper) of Product is 100

The order 1 is created + shipped. The Inventory on Paper of the product is now 99

That was a few weeks ago, in the mean time I have setup odoo :)

While setting it up I entered 99 as the current qty_available

Now I enter the old order 1 into odoo, mark it as paid+shipped. Now the inventory in odoo is down to 98. 

That's the point where a server action should start (on stock.picking done) and add the ordered product back to the stock. This way it is corretly shipped+stock moved, and the qty_available is correct.

 

Thanks for your help :)

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.

Register

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

1 follower(s)

Stats

Asked: 9/5/16, 5:25 AM
Seen: 345 times
Last updated: 9/5/16, 9:02 AM