[FIX] website_sale: order categories according to their sequence

bzr revid: dle@openerp.com-20140403112511-h4yi8jimf9hjucyl
This commit is contained in:
Denis Ledoux 2014-04-03 13:25:11 +02:00
parent 0a80f59853
commit b5c0c3a5d2
1 changed files with 1 additions and 0 deletions

View File

@ -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,