[FIX] website_sale: retur the browse record of category insead of int
This commit is contained in:
parent
f15cbd6520
commit
98d9901c17
|
@ -169,7 +169,7 @@ class website_sale(http.Controller):
|
||||||
|
|
||||||
values = {
|
values = {
|
||||||
'search': search,
|
'search': search,
|
||||||
'category': category and int(category),
|
'category': category,
|
||||||
'attrib_values': attrib_values,
|
'attrib_values': attrib_values,
|
||||||
'attrib_set': attrib_set,
|
'attrib_set': attrib_set,
|
||||||
'pager': pager,
|
'pager': pager,
|
||||||
|
|
|
@ -240,7 +240,7 @@
|
||||||
<!-- Add to cart button-->
|
<!-- Add to cart button-->
|
||||||
|
|
||||||
<template id="categories_recursive" name="Category list">
|
<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>
|
<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">
|
<ul t-if="c.child_id" class="nav nav-pills nav-stacked nav-hierarchy">
|
||||||
<t t-foreach="c.child_id" t-as="c">
|
<t t-foreach="c.child_id" t-as="c">
|
||||||
|
|
Loading…
Reference in New Issue