[FIX] website_sale: inherit_option_id for list view and category view

bzr revid: chm@openerp.com-20130926075650-blc9d3fyj3gbcgoq
This commit is contained in:
Christophe Matthieu 2013-09-26 09:56:50 +02:00
parent cd5a77788d
commit cf79e61c36
1 changed files with 29 additions and 27 deletions

View File

@ -140,32 +140,34 @@
</div>
<div class='style_default'>
<table class="col-md-12" id="products_grid">
<colgroup>
<col style="width: 1px; margin-right: -1px;" />
<col class="col-md-3" />
<col class="col-md-3" />
<col class="col-md-3" />
<col class="col-md-3" />
</colgroup>
<tbody>
<t t-set="table_products" t-value="get_bin_packing_products(product_ids, product_ids_for_holes, 4)"/>
<tr t-foreach="table_products" t-as="tr_product">
<td class="oe-height-2"></td>
<t t-foreach="tr_product" t-as="td_product">
<t t-if="td_product">
<t t-set="product" t-value="td_product['product']"/>
<td t-att-colspan="td_product['x']"
t-att-rowspan="td_product['y']"
t-attf-class="oe_product #{ td_product['class'] }"
t-att-data-publish="product.website_published and 'on' or 'off'">
<t t-call="website_sale.products_cart"/>
</td>
<div class="col-md-12" id="products_grid">
<table width="100%">
<colgroup>
<col style="width: 1px; margin-right: -1px;" />
<col class="col-md-3" />
<col class="col-md-3" />
<col class="col-md-3" />
<col class="col-md-3" />
</colgroup>
<tbody>
<t t-set="table_products" t-value="get_bin_packing_products(product_ids, product_ids_for_holes, 4)"/>
<tr t-foreach="table_products" t-as="tr_product">
<td class="oe-height-2"></td>
<t t-foreach="tr_product" t-as="td_product">
<t t-if="td_product">
<t t-set="product" t-value="td_product['product']"/>
<td t-att-colspan="td_product['x']"
t-att-rowspan="td_product['y']"
t-attf-class="oe_product #{ td_product['class'] }"
t-att-data-publish="product.website_published and 'on' or 'off'">
<t t-call="website_sale.products_cart"/>
</td>
</t>
</t>
</t>
</tr>
</tbody>
</table>
</tr>
</tbody>
</table>
</div>
</div>
<div class="text-center">
<t t-call="website.pager" />
@ -199,8 +201,8 @@
<!-- List view of products -->
<template id="list_view" inherit_option_id="website_sale.products" name="List View">
<xpath expr="//table[@id='products_grid']" position="replace">
<div class="col-md-12">
<xpath expr="//div[@id='products_grid']/table" position="replace">
<div class="row">
<t t-set="products" t-value="get_products(product_ids)"/>
<t t-foreach="products" t-as="product">
<div class="col-md-12 oe_list_products oe-height-1">