Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
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?
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.
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
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
|Asked: 10/6/14, 8:33 AM|
|Seen: 1285 times|
|Last updated: 3/16/15, 8:10 AM|