← Back to team overview

openerp-india team mailing list archive

[Bug 958897] Re: [6.1] Purchase/Sale Order does not use product's non-reference Unit-type Unit of Measure

 

Thank you Amit for investigating this issue.

Your video does something very different. It creates two new UoM
Categories. I am reporting an issue that only happens when using the
'Unit' category that is included in OpenERP by default. Using any UoM
that belongs to any other category besides the 'Unit' category does not
produce this bug: it triggers the warning message shown in your video,
and then uses the correct UoM, as you have shown.

To product my bug, create two new UoMs that belong to the 'Unit' category.
For example, create these two UoMs (not UoM Categories):

Name: Pack 2
UoM Category: Unit
UoM Type: Bigger than the reference UoM
Rounding Precision: 1.00
Ratio: 2.00

Name : Case 24
UoM Category: Unit
UoM Type: Bigger than the reference UoM
Rounding Precision: 1.00
Ratio: 24.00

Then, pick a product, and set ' Pack 2' as its Default Unit of Measure,
and set 'Case 24' as its Purchase Unit of Measre.

Then create a Sales Order or a Purchase Order and add that product to
it, and see what UoM gets used.

-- 
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/958897

Title:
  [6.1] Purchase/Sale Order does not use product's non-reference Unit-
  type Unit of Measure

Status in OpenERP Addons (modules):
  Incomplete

Bug description:
  Problem:

  For a product using Unit-type units of measure, both Sales Orders and
  Purchase Orders use the reference unit of measure (PCE) and ignore the
  product's 'Default Unit of Measure' and 'Purchase Unit of Measure',
  respectively.

  Steps to produce:

  1. In product definition, use two different units for 'Default Unit of Measure' and 'Purchase Unit of Measure' that belong to the 'Unit' Unit of Measure category, but are different from the reference unit of measure (PCE).
  E.g. create two new units of measure of category 'Unit': 'Pack 2' and 'Case 24' and use them as the 'Default Unit of Measure' and 'Purchase Unit of Measure', respectively.

  Sales Order:
  2. Crate a Sales Order, select a customer, and then create a Sales Order Line.
  3. In the 'Create: Sales Order Lines', select a product whose Default Unit of Measure is not 'PCE' but is from the 'Unit' UoM Category, and notice that the UoM field remains PCE.

  Purchase Order:

  2. Create a Purchase Order, select a supplier, and then create a Purchase Order Line.
  3. In the 'Create: Purchase Order Lines', select a product whose Default Unit of Measure is not 'PCE' but is from the 'Unit' UoM Category, and notice that the 'Product UOM' field remains PCE.

  
  Expected Behavior:

  The UoM field of the Sales Order and the Purchase Order lines should
  update to the product's respective units. This works for other UoM
  categories, but not for the 'Unit' category.

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/958897/+subscriptions


References