← Back to team overview

openerp-india team mailing list archive

[Bug 1169074] Re: [6.1][7.0][trunk]Pricelist doesn't take category depth into account

 

** Tags added: product

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

Title:
  [6.1][7.0][trunk]Pricelist doesn't take category depth into account

Status in OpenERP Addons (modules):
  Confirmed

Bug description:
  Attached is a proposal that fix this issue

  eg: If you create two rules:

  - Apply a discount of 25% on products in category A with sequence 5
  - Apply a discount of 50% on products in category B (where B is a child of A) with sequence 5

  Depending on the order of these two lines, your product could have a
  discount of 25% OR 50% (that's a random order from postgresql)

  The sequence number (the only way to make priority) is not usable here
  as you have to manually link the sequence number with the category
  depth !!! That's impossible to do when you have 6 and more levels of
  category.

  In my patch, the category depth is first computed then used in the
  result order

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