Odoo Help


when we are making an internal transfer between locations of our company warehouse, is possible to force that the serial number exists in origin location?

Manuel Berenguer
on 10/6/14, 8:33 AM 1,142 views

Actually, if the serial number to transfer does not exist into the origin, odoo makes the transfer and puts -1 in the origin location for this serial number stock.



| 5 3 6
Jakarta, Indonesia
On 10/6/14, 11:56 AM

Manuel, a serial number never "exist" in a location.  What would happen if you create a transfer is that a stock.move is created for that particular product for that particular quantity (and uom) with that particular stock.production.lot (or Serial Number).  So, when you create a stock.move with a particular stock.production.lot, the total quantity of that particular product and stock.production.lot will be calculated as "reduced" by the quantity (and uom) in the origin location and "increased" in the destination location.  In actuality, there is no reducing or increasing of number being performed.

It is possible to ensure that the total quantity of a product and stock.production.lot combination never goes beyond 0 in a stock.location.  You need to develop a _constraint for that. There are a lot of _constraints example in account/account_move_line.py

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

1 follower(s)


Asked: 10/6/14, 8:33 AM
Seen: 1142 times
Last updated: 3/16/15, 8:10 AM