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

This reverts commit b0f02e31b2.

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 a6badd2559
This commit is contained in:
Christophe Simonis
2016-05-13 13:28:41 +02:00
parent f1659a0dc9
commit dcab356b38
+1 -1
View File
@@ -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()]