When modifying a production lot (aka serial number in trunk), there is no check to assert that the changes are consistent with the existing data.
So users are allowed to change the product even though stock moves have been recorded using this prodlot.
But this makes it impossible to move the existing stock, or even to make an inventory of it or to scrap it.
So, users should just not be allowed to change the product.
Ideally, the field should become read-only as soon as there has been a stock move recorded.
If that's not feasable, OpenERP should at least raise a clean error message, and advice them to use another method. For example: "You cannot change this Production Lot because Stock Moves refer to it. You may want to create a new Production Lot and make an inventory to remove the current stock of this Production Lot, and create a stock of the new Production Lot."
When modifying a production lot (aka serial number in trunk), there is no check to assert that the changes are consistent with the existing data.
So users are allowed to change the product even though stock moves have been recorded using this prodlot.
But this makes it impossible to move the existing stock, or even to make an inventory of it or to scrap it.
So, users should just not be allowed to change the product.
Ideally, the field should become read-only as soon as there has been a stock move recorded.
If that's not feasable, OpenERP should at least raise a clean error message, and advice them to use another method. For example: "You cannot change this Production Lot because Stock Moves refer to it. You may want to create a new Production Lot and make an inventory to remove the current stock of this Production Lot, and create a stock of the new Production Lot."
Lionel Sausin.