You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

120 lines
6.8 KiB

<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<template id="add_cart_banner_lego" inherit_id="website_sale.product"
name="add to cart banner">
<xpath expr="//section[@id='product_detail']" position="before">
<!-- Add to cart banner view-->
<section class="banner_product">
<div class="container">
<div class="row">
<div class="col-12">
<div class="banner_content">
<div class="product_heading">
<h1>Product preview</h1>
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item">
<a href="/">Home</a>
<i class="material-icons fa fa-arrow-right"
style="font-size:12px;color:#ffffff;">
</i>
</li>
<li class="breadcrumb-item">
<a href="/shop">SHOP</a>
<i class="material-icons fa fa-arrow-right"
style="font-size:12px;color:#ffffff;">
</i>
</li>
<li class="breadcrumb-item active"
aria-current="page">PRODUCTS
PREVIEW
</li>
</ol>
</nav>
</div>
</div>
</div>
</div>
</div>
</section>
</xpath>
</template>
<!-- Add to cart template-->
<template id="add_cart_product_spec_lego"
inherit_id="website_sale_comparison.product_attributes_body"
name="add to cart product specification">
<xpath expr="//section[@id='product_full_spec']" position="replace">
<section class="container pt-5" id="product_full_spec">
<div class="preview_tab">
<t t-set="categories"
t-value="product.valid_product_template_attribute_line_ids._prepare_categories_for_display()"/>
<t t-if="categories">
<div class="nav nav-pills mb-3">
<div class="nav-item">
<h3 class="nav-link active">Specification
</h3>
</div>
</div>
<div class="row">
<div class='col-lg-8 offset-lg-2'
id='product_specifications'>
<table class='table table-striped table-sm table-hover'>
<t t-foreach="categories"
t-as="category">
<t t-if="len(categories) > 1">
<tr class="clickable"
data-toggle="collapse"
t-att-data-target="'.o_ws_category_%d' % category.id">
<th class="text-left"
t-att-colspan="2">
<span t-if="category"
t-field="category.name"/>
<span t-else="">
Uncategorized
</span>
</th>
</tr>
</t>
<tr t-foreach="categories[category].filtered(lambda l: len(l.value_ids) > 1)"
t-as="ptal"
t-att-class="'collapse show o_ws_category_%d' % category.id">
<td>
<span t-field="ptal.attribute_id.name"/>
</td>
<td>
<t t-foreach="ptal.value_ids"
t-as="pav">
<span t-field="pav.name"/>
<t t-if="not pav_last">
or
</t>
</t>
</td>
</tr>Specification
<t t-set="single_value_attributes"
t-value="categories[category]._prepare_single_value_for_display()"/>
<tr t-foreach="single_value_attributes"
t-as="attribute"
t-att-class="'collapse show o_ws_category_%d' % category.id">
<td>
<span t-field="attribute.name"/>
</td>
<td>
<t t-foreach="single_value_attributes[attribute]"
t-as="ptal">
<span t-field="ptal.product_template_value_ids._only_active().name"/>
<t t-if="not ptal_last">
</t>
</t>
</td>
</tr>
</t>
</table>
</div>
</div>
</t>
</div>
</section>
</xpath>
</template>
</odoo>