openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #17193
[Bug 894648] Re: Can not change the product's UOM , If once I have save the product
Dear Amit,
Thanks for your work on this. As I commented on your merge proposal, and to my big regret, I don't think you can simply check stock moves because other objects may need to be checked.
For example, sale order lines must be checked too, because confirming a quotation will create stock moves with the UoM of the Sale Order.
And custom modules may do something along those lines too and you can never know.
So if you want to relax the check it has to be generic enough to detect those cases but I don't see how that can be done.
Lionel Sausin.
** Changed in: openobject-addons
Status: Fix Committed => Opinion
** Tags added: data-integrity
--
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/894648
Title:
Can not change the product's UOM , If once I have save the product
Status in OpenERP Addons (modules):
Opinion
Bug description:
I have to create a one product with default UOM of "KG" with uom
category "Weight".
Steps:
Create one product and By mistake I have save the record then set a default UOM as a "PCS".
Now I have to change the default UOM to "KG" but it fires a
constraint .
"New UoM 'PCE' must belongs to same UoM category 'Weight' as of old
UoM 'kg'" But I have none of the record belongs to UOM category of
"Unit".
Thank you!
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/894648/+subscriptions
References