Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] website_sale_product_minimal_price: Take into account all price…
…list items Previous approach only considered pricelist items in the same pricelist as the current one, but you can have some items that point to another pricelists, so we are changing the approach to get all possible items, no matter the pricelist, get the minimal quantity which they apply to, and then get the price for that quantity to see if with the price computation, they return a different value, marking them in the scale table. With this, we get a compromise between performance and accuracy. NOTE: There are still left intentionally items for "All products" that can have other scaled prices, but as this can have a lot of impact in performance and it's improbable that someone configures pricelists this way, it's better to not include them. TT29708
- Loading branch information