Skip to content
Snippets Groups Projects
Commit dcab356b authored by Christophe Simonis's avatar Christophe Simonis
Browse files

Revert "[FIX] product: respect sequence when loading pricelist rules"

This reverts commit b0f02e31.

As pointed out by @nim-odoo [1], a similar patch has already been
uncommited few month ago [2].

Ref #11988
opw-676422

[1] https://git.io/vrYxY
[2] see a6badd25
parent f1659a0d
No related branches found
No related tags found
No related merge requests found
......@@ -156,7 +156,7 @@ class product_pricelist(osv.osv):
'AND (categ_id IS NULL OR categ_id = any(%s)) '
'AND (pricelist_id = %s) '
'AND ((i.date_start IS NULL OR i.date_start<=%s) AND (i.date_end IS NULL OR i.date_end>=%s))'
'ORDER BY applied_on, sequence, min_quantity desc',
'ORDER BY applied_on, min_quantity desc',
(prod_tmpl_ids, prod_ids, categ_ids, pricelist.id, date, date))
item_ids = [x[0] for x in cr.fetchall()]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment