openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #17464
[Bug 1073106] Re: Changing product on production lots must be forbidden
One more thing: please let me correct myself: the field should be read-only as soon as the record is created.
As I noted on another bug, I doubt we can find a generic way to know if the serial number's product is safe to change or not : there may be custom addons that depend on it, in addition to the standard Stock Moves.
I hope this is clear enough, just tell me if it isn't.
Lionel
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1073106
Title:
Changing product on production lots must be forbidden
Status in OpenERP Addons (modules):
In Progress
Bug description:
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 feasible, 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.
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1073106/+subscriptions
References