[FIX] website_sale: order categories according to their sequence
bzr revid: dle@openerp.com-20140403112511-h4yi8jimf9hjucyl
This commit is contained in:
parent
0a80f59853
commit
b5c0c3a5d2
|
@ -275,6 +275,7 @@ class Ecommerce(http.Controller):
|
|||
all_categories.add(parent)
|
||||
parent = parent.parent_id
|
||||
categories = list(all_categories)
|
||||
categories.sort(key=lambda x: x.sequence)
|
||||
|
||||
values = {
|
||||
'products': products,
|
||||
|
|
Loading…
Reference in New Issue