[FIX] website_sale: retur the browse record of category insead of int

This commit is contained in:
Christophe Matthieu 2014-06-13 16:17:51 +02:00
parent f15cbd6520
commit 98d9901c17
2 changed files with 2 additions and 2 deletions

View File

@ -169,7 +169,7 @@ class website_sale(http.Controller):
values = {
'search': search,
'category': category and int(category),
'category': category,
'attrib_values': attrib_values,
'attrib_set': attrib_set,
'pager': pager,

View File

@ -240,7 +240,7 @@
<!-- Add to cart button-->
<template id="categories_recursive" name="Category list">
<li t-att-class="'active' if c.id == category else ''">
<li t-att-class="'active' if c.id == int(category or 0) else ''">
<a t-att-href="keep('/shop/category/' + slug(c), category=0)" t-field="c.name"></a>
<ul t-if="c.child_id" class="nav nav-pills nav-stacked nav-hierarchy">
<t t-foreach="c.child_id" t-as="c">