← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 716289] Re: Pricing Does Not Work When Multiple UOM On A Product

 

Jay Vora,

Thanks for attempting to address the issue. However it still remains.

The code seems to handle purchases, which is what you tested in your
video.

Notice this line in pricelist.py

    qty_in_product_uom = product_uom_obj._compute_qty(cr, uid,
product_default_uom, qty, to_uom_id=seller_uom)

This code converts the qty to qty_in_product_uom.

The problem however is that this is only done for purchases and not
sales.

The repercussions of not doing this means the following:

I generally sell CARTONS OF wine. However, sometimes I will break a
carton open and sell individual bottles (12 bottles to a carton).

However, when I sell in bottles rather than cartons, I wish to apply a
4% surcharge on the price.

Say a carton is worth $120.00, then I wish to sell bottles of wine for
$10.40 each.

To achieve that, I have price rules set up as follows:

Product    Min Quantity         Sequence          Price Discount
    Wine                      1                       1                              0
    Wine                      0                       5                         0.04

You will notice that I am trying to configure OpenERP that if I sell
less than a carton, then the surcharge is to apply.

What is happening when I sell 1 BOTTLE is that it is saying that I have
met my quantity of 1 and hence not applying the surcharge.

I hope this makes things more clear.

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

Title:
  Pricing Does Not Work When Multiple UOM On A Product

Status in OpenERP Modules (addons):
  Invalid
Status in OpenERP Addons 6.0 series:
  Fix Released

Bug description:
  The price lists enable you to establish pricing on the quantity that
  is purchased.

  Lets imagine that 64 units of an item constitute a pallet. You set up
  pricing to say that if 64 units are purchased, then there is a
  discount of say 10% (purchase by the pallet and get a 10% discount).

  Now sell 1 pallet to a customer (as you have already set up a UOM
  with a bigger than reference at a ratio of 64).

  The pricing will not give a 10% discount until you sell 64 of any
  units of measure.

  I would have thought that because of the pallet constituting 64 units,
  that the pricing applied for this single pallet would get the 10%
  discount.

  This pattern can be replicated across all combinations where the UOM
  is different to the UOS.

  This is making it impossible to set up price rules if sell by multiple
  UOM.


References