Can not change the product's UOM , If once I have save the product
Bug #894648 reported by
Amit Parik
This bug affects 4 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Confirmed
|
Low
|
OpenERP R&D Addons Team 2 |
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!
Related branches
lp://staging/~openerp-dev/openobject-addons/trunk-bug-894648-amp
On hold
for merging
into
lp://staging/openobject-addons
- Numérigraphe (community): Disapprove (needs to be generic)
- Naresh(OpenERP) (community): Needs Fixing
-
Diff: 40 lines (+11/-9)2 files modifiedproduct/product.py (+0/-9)
stock/product.py (+11/-0)
lp://staging/~openerp-dev/openobject-addons/6.1-opw-576033-rgo
Rejected
for merging
into
lp://staging/openobject-addons/6.1
- Naresh(OpenERP) (community): Disapprove
- Ravi Gohil (OpenERP) (community): Needs Resubmitting
-
Diff: 49 lines (+19/-9)2 files modifiedproduct/product.py (+0/-9)
stock/product.py (+19/-0)
lp://staging/~openerp-dev/openobject-addons/7.0-product-uom-category-mat
Ready for review
for merging
into
lp://staging/openobject-addons/7.0
- Lionel Sausin - Initiatives/Numérigraphe (community): Disapprove
- OpenERP Core Team: Pending requested
-
Diff: 42 lines (+12/-9)2 files modifiedproduct/product.py (+0/-9)
stock/product.py (+12/-0)
Changed in openobject-addons: | |
assignee: | nobody → OpenERP R&D Addons Team 2 (openerp-dev-addons2) |
importance: | Undecided → Low |
status: | New → Confirmed |
Changed in openobject-addons: | |
status: | Confirmed → In Progress |
To post a comment you must log in.
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: dev-addons2) dev-addons2)
> 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-
> 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-
>