openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #01813
Re: [Bug 894648] [NEW] Can not change the product's UOM , If once I have save the product
Normally you should be able to change UoM for a product if there is no
transaction (in any state) with this product in sale_line, invoice_line,
stock_move, purchase_line, mrp_production, procurement_order, etc ...It
is too much and too risky to insert such a verification. It is therefore
safer to block change UoM in another category.
As a workaround, you can change temporarily category for PCE from Unit
to Weight, then change UoM of product from PCE to KG, and then change
back category for PCE to Unit. For safety, you must be the only user
connected to the database.
Thanks
On 25.11.2011 09:19, Amit Parik (OpenERP) wrote:
> Public bug reported:
>
> 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!
>
> ** Affects: openobject-addons
> Importance: Low
> Assignee: OpenERP R&D Addons Team 2 (openerp-dev-addons2)
> Status: Confirmed
>
> ** Changed in: openobject-addons
> Importance: Undecided => Low
>
> ** Changed in: openobject-addons
> Status: New => Confirmed
>
> ** Changed in: openobject-addons
> Assignee: (unassigned) => OpenERP R&D Addons Team 2 (openerp-dev-addons2)
>
--
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):
Confirmed
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