← Back to team overview

openerp-wms-expert team mailing list archive

[Bug 1073106] Re: Changing product on production lots must be forbidden

 

Hello Lionel,

Thanks for reporting it. I think override write() is better solution, but we still need check
for moves too, if no moves associated with the lot then product can be changed else forbidden.

Making product as read only for stable 6.0 doesn't work. I tried when there is any stock move then
product should become read only but that doesn't work, so will go for write(). attrs works perfectly
for trunk so I will propose that solution for trunk.

Appreciated your efforts!
Thanks,
Rifakat Haradwala

-- 
You received this bug notification because you are a member of OpenERP
WMS Expert, which is subscribed to the bug report.
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