price_get_multi does not work for a list of pricelists
Bug #1011927 reported by
Richard deMeester
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Confirmed
|
Low
|
OpenERP R&D Addons Team 2 |
Bug Description
In pricelist.py, in product, price_get calls price_get_multi
If a list of pricelist_ids is passed, the complete list returned is the same price multiple times!
The bug is that pricelist_
Then, in the loop (for pricelist_id in pricelist_ids) the cr.execute always uses pricelist_
The only way for this to work is to retrieve one pricelist at a time.
summary: |
- price_get_multi does not work for a list of pvices + price_get_multi does not work for a list of prices |
summary: |
- price_get_multi does not work for a list of prices + price_get_multi does not work for a list of pricelists |
To post a comment you must log in.
Hello Richard,
I have completely checked your issue and It's working fine.
I have created two price list version one for May(public price) and second for June (with 50% discount on public price).
I try to create a SO for june and It will takes the perfect price list version (2nd). Also I have created a SO for May and It takes the 1st price list version. Additionally I printed the result on price_get_multi and got a only one pricelist_id and price.
I have attached the video for your more reference, which will clearly show the thing. So would you please check it and notify us where you faced the problem. Also please provide the proper use case on it.
Thanks and waiting for your reply!