[FIX] website_sale: highlight category

bzr revid: chm@openerp.com-20140121101529-2cseit2mq5w1d2z2
This commit is contained in:
Christophe Matthieu
2014-01-21 11:15:29 +01:00
parent 8d48ce0f5a
commit cbbf6f5940
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -246,7 +246,7 @@ class Ecommerce(http.Controller):
'range': range,
'search': {
'search': search,
'category': category,
'category': category and category.id,
'filters': filters,
},
'pager': pager,
+1 -1
View File
@@ -26,7 +26,7 @@
<!-- List of categories -->
<template id="categories_recursive" name="Category list">
<li t-att-class="str(category.id) == search.get('category') and 'active' or ''">
<li t-att-class="category.id == search.get('category') and 'active' or ''">
<a t-href="/shop/category/#{ slug(category) }/" t-field="category.name"></a>
<ul t-if="category.child_id" class="nav nav-pills nav-stacked nav-hierarchy">
<t t-foreach="category.child_id" t-as="category">