← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 690008] Re: [product][trunk]uom name does not change and causes errors

 

** Attachment added: "Screenshot.png"
   https://bugs.launchpad.net/openobject-addons/+bug/690008/+attachment/1765484/+files/Screenshot.png

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/690008

Title:
  [product][trunk]uom name does not change and causes errors

Status in OpenObject Addons Modules:
  Invalid

Bug description:
  Came across this strange one today.  In my industry we do not sell by the metre(m) but by the lineal metre (lm).  All other conversions are pretty much the same.  So I thought just adjust the name m to lm.

So to replicate.  Install demo data (or not) with sale module installed.  Go in to Sale, Configuration, Products, units of Measure and rename m to lm.  So far so good.  In list view we see our changed uom as lm.

Now comes the strange part.  Take a look in the pgsql table product_uom with id 7 - it still says m. (and will even show a write_date timestamp of now)

Now create an order or use an existing one and add a sale order line - once again we can select lm but not m as our uom.

Now generate a report, there is no reference to sale_order_line.product_uom.name if we have used lm as our uom, but if we change it to cm it works fine.  Now go back in to uom and rename back to m and reports run again.

I have a very functional workaround - rather than change the name (1 letter in this case) - create a new uom and set up as normal.  This works fine.  Except obviously you would need to go and change all of your orders and products which is a pain.  It seems strange that you can't change the name of a unit of measure - especially as it looks like you have.

Running yesterdays revisions. pg 8.4





References