[6.1][7.0][trunk]Pricelist doesn't take category depth into account
Bug #1169074 reported by
Yann Papouin
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Confirmed
|
Medium
|
OpenERP R&D Addons Team 2 | |||
OpenERP Community Backports (Addons) | Status tracked in 7.0 | |||||
6.1 |
Fix Released
|
Medium
|
Yann Papouin | |||
7.0 |
Fix Committed
|
Medium
|
Yann Papouin |
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
Related branches
lp://qastaging/~yann-papouin/openobject-addons/6.1-bug-1169074-pricelist-category-depth
- OpenERP Core Team: Pending requested
-
Diff: 76 lines (+38/-14)1 file modifiedproduct/pricelist.py (+38/-14)
lp://qastaging/~yann-papouin/ocb-addons/6.1-bug-1169074-pricelist-category-depth
- Holger Brunn (Therp): Approve
-
Diff: 76 lines (+38/-14)1 file modifiedproduct/pricelist.py (+38/-14)
lp://qastaging/~yann-papouin/openobject-addons/7.0-bug-1169074-pricelist-category-depth
- OpenERP Core Team: Pending requested
-
Diff: 70 lines (+37/-14)1 file modifiedproduct/pricelist.py (+37/-14)
lp://qastaging/~yann-papouin/ocb-addons/7.0-bug-1169074-pricelist-category-depth
- Holger Brunn (Therp): Disapprove
- Guewen Baconnier @ Camptocamp: Needs Information
- Yannick Vaucher @ Camptocamp: Approve (code review, no test)
-
Diff: 70 lines (+37/-14)1 file modifiedproduct/pricelist.py (+37/-14)
summary: |
- Pricelist doesn't take category depth into account + [6.1][7.0][trunk]Pricelist doesn't take category depth into account |
Changed in openobject-addons: | |
status: | Incomplete → New |
tags: | added: product |
Changed in ocb-addons: | |
assignee: | nobody → Yann Papouin (yann-papouin) |
no longer affects: | openobject-addons/6.1 |
To post a comment you must log in.
Hello Yaan,
I have checked your Issue with latest revision. But It's seems fine. That's why I have attached screen cast for your reference. so would you please check It and notify us where you have faced the problem.
Thanks and waiting for your reply!