|
@@ -1,5 +1,6 @@
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
-<odoo>
|
|
|
+<openerp>
|
|
|
+<data>
|
|
|
|
|
|
<!-- Home Slider snippet -->
|
|
|
<template id="s_kingfisher_pro_home_slider" name="Home Slider">
|
|
@@ -11,7 +12,7 @@
|
|
|
</ol>
|
|
|
<!-- Wrapper for slides -->
|
|
|
<div class="carousel-inner">
|
|
|
- <div class="carousel-item item1 active">
|
|
|
+ <div class="item item1 active">
|
|
|
<div class="container">
|
|
|
<div class="row content">
|
|
|
<blockquote class="col-md-6 col-sm-6 col-xs-6">
|
|
@@ -28,10 +29,10 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="carousel-item item2">
|
|
|
+ <div class="item item2">
|
|
|
<div class="container">
|
|
|
- <div class="flex-row-reverse row content">
|
|
|
- <blockquote class=" col-md-5 col-sm-6 col-xs-6">
|
|
|
+ <div class="row content">
|
|
|
+ <blockquote class="pull-right col-md-5 col-sm-6 col-xs-6">
|
|
|
<p>Western Wear</p>
|
|
|
<h2>Women Tops</h2>
|
|
|
<h5>Save <span>20%</span></h5>
|
|
@@ -47,14 +48,14 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- Controls -->
|
|
|
- <a class="carousel-control-prev" data-target="#myCarousel" data-slide="prev" role="button">
|
|
|
- <span class="previous-icon">
|
|
|
+ <a class="left carousel-control" data-target="#myCarousel" data-slide="prev" role="button">
|
|
|
+ <span aria-hidden="true" class="previous-icon">
|
|
|
<img src="/kingfisher_pro/static/src/img/prev-slide.png"/>
|
|
|
</span>
|
|
|
<span class="sr-only">Previous</span>
|
|
|
</a>
|
|
|
- <a class="carousel-control-next" data-slide="next" data-target="#myCarousel" role="button">
|
|
|
- <span class="next-icon">
|
|
|
+ <a class="right carousel-control" data-slide="next" data-target="#myCarousel" role="button">
|
|
|
+ <span aria-hidden="true" class="next-icon">
|
|
|
<img src="/kingfisher_pro/static/src/img/next-slide.png"/>
|
|
|
</span>
|
|
|
<span class="sr-only">Next</span>
|
|
@@ -160,7 +161,7 @@
|
|
|
<div class="row">
|
|
|
<div class="col-sm-4">
|
|
|
<a href="#">
|
|
|
- <i class="fa fa-shopping-cart" alt="Free Shipping"></i>
|
|
|
+ <i class="fa fa-shopping-cart" aria-hidden="true" alt="Free Shipping"></i>
|
|
|
</a>
|
|
|
<h4 class="">
|
|
|
<b>FREE SHIPPING WORLDWIDE</b>
|
|
@@ -169,7 +170,7 @@
|
|
|
</div>
|
|
|
<div class="col-sm-4">
|
|
|
<a href="#">
|
|
|
- <i class="fa fa-phone" Title="Customer Service" alt="Customer Service"></i>
|
|
|
+ <i class="fa fa-phone" aria-hidden="true" Title="Customer Service" alt="Customer Service"></i>
|
|
|
</a>
|
|
|
<h4 class="">
|
|
|
<b>24/7 CUSTOMER SERVICE</b>
|
|
@@ -178,7 +179,7 @@
|
|
|
</div>
|
|
|
<div class="col-sm-4">
|
|
|
<a href="#">
|
|
|
- <i class="fa fa-money" Title="Money Back" alt="Money Back"></i>
|
|
|
+ <i class="fa fa-money" aria-hidden="true" Title="Money Back" alt="Money Back"></i>
|
|
|
</a>
|
|
|
<h4 class="">
|
|
|
<b>MONEY BACK GUARANTEE !</b>
|
|
@@ -243,14 +244,11 @@
|
|
|
</a>
|
|
|
</div>
|
|
|
<div class="pink-box">
|
|
|
- <ul class='ratings' t-if="request.env.ref('website_sale.product_comment').active">
|
|
|
- <t t-set='rates' t-value="slide.rating_get_stats([('website_published', '=', True)])"/>
|
|
|
- <t t-call="portal.message_thread">
|
|
|
- <t t-set="rating_val" t-value="rates.get('avg')" t-if="rates and rates.get('avg')"/>
|
|
|
- <t t-set="object" t-value="slide"/>
|
|
|
- <t t-set="only_rating" t-value="1"/>
|
|
|
- <t t-set="display_rating" t-value="True"/>
|
|
|
- <t t-set="disable_composer" t-value="True"/>
|
|
|
+ <ul class='ratings'>
|
|
|
+ <t t-call="rating.rating_card">
|
|
|
+ <t t-set="rating_stat" t-value="slide.rating_get_stats([('website_published', '=', True)])"/>
|
|
|
+ <t t-set="max_rate" t-value="5"/>
|
|
|
+ <t t-set="min_rate" t-value="1"/>
|
|
|
</t>
|
|
|
</ul>
|
|
|
<div class="view">
|
|
@@ -269,10 +267,11 @@
|
|
|
</p>
|
|
|
<p class="price">
|
|
|
<span class="price">
|
|
|
- <t t-if="(compute_currency(slide.lst_price) - slide.website_price) > 0.1 and website.get_current_pricelist().discount_policy=='without_discount'">
|
|
|
- <del class="text-danger mr8" style="white-space: nowrap;" t-esc="compute_currency(slide.website_public_price)" t-options="{'widget': 'monetary', 'display_currency': website.get_current_pricelist().currency_id, 'from_currency': website.currency_id}"/>
|
|
|
- </t>
|
|
|
- <span t-esc="slide.website_price" t-options="{'widget': 'monetary', 'display_currency': website.currency_id}"/>
|
|
|
+ <span t-field="slide.lst_price"
|
|
|
+ t-field-options='{
|
|
|
+ "widget": "monetary",
|
|
|
+ "display_currency": "website.pricelist_id.currency_id"
|
|
|
+ }'></span>
|
|
|
</span>
|
|
|
</p>
|
|
|
</div>
|
|
@@ -430,7 +429,7 @@
|
|
|
<ul id="multi_dynamic_slider_tabs" class="nav nav-tabs">
|
|
|
|
|
|
<t t-if="slider_details.no_of_collection == '2'">
|
|
|
- <li class="my-test">
|
|
|
+ <li class="active my-test">
|
|
|
<a href="#multi-collection1" data-toggle="tab">
|
|
|
<t t-esc='slider_details.label_collection_1'/>
|
|
|
</a>
|
|
@@ -443,7 +442,7 @@
|
|
|
</t>
|
|
|
|
|
|
<t t-if="slider_details.no_of_collection == '3'">
|
|
|
- <li class="">
|
|
|
+ <li class="active">
|
|
|
<a href="#multi-collection1" data-toggle="tab">
|
|
|
<t t-esc='slider_details.label_collection_1'/>
|
|
|
</a>
|
|
@@ -461,7 +460,7 @@
|
|
|
</t>
|
|
|
|
|
|
<t t-if="slider_details.no_of_collection == '4'">
|
|
|
- <li class="">
|
|
|
+ <li class="active">
|
|
|
<a href="#multi-collection1" data-toggle="tab">
|
|
|
<t t-esc='slider_details.label_collection_1'/>
|
|
|
</a>
|
|
@@ -484,7 +483,7 @@
|
|
|
</t>
|
|
|
|
|
|
<t t-if="slider_details.no_of_collection == '5'">
|
|
|
- <li class="">
|
|
|
+ <li class="active">
|
|
|
<a href="#multi-collection1" data-toggle="tab">
|
|
|
<t t-esc='slider_details.label_collection_1'/>
|
|
|
</a>
|
|
@@ -528,14 +527,11 @@
|
|
|
</a>
|
|
|
</div>
|
|
|
<div class="pink-box">
|
|
|
- <ul class='ratings' t-if="request.env.ref('website_sale.product_comment').active">
|
|
|
- <t t-set='rates' t-value="product.rating_get_stats([('website_published', '=', True)])"/>
|
|
|
- <t t-call="portal.message_thread">
|
|
|
- <t t-set="rating_val" t-value="rates.get('avg')" t-if="rates and rates.get('avg')"/>
|
|
|
- <t t-set="object" t-value="product"/>
|
|
|
- <t t-set="only_rating" t-value="1"/>
|
|
|
- <t t-set="display_rating" t-value="True"/>
|
|
|
- <t t-set="disable_composer" t-value="True"/>
|
|
|
+ <ul class='ratings'>
|
|
|
+ <t t-call="rating.rating_card">
|
|
|
+ <t t-set="rating_stat" t-value="product.rating_get_stats([('website_published', '=', True)])"/>
|
|
|
+ <t t-set="max_rate" t-value="5"/>
|
|
|
+ <t t-set="min_rate" t-value="1"/>
|
|
|
</t>
|
|
|
</ul>
|
|
|
<div class="view">
|
|
@@ -554,14 +550,23 @@
|
|
|
</p>
|
|
|
<p class="price">
|
|
|
<span class="price">
|
|
|
- <t t-if="(compute_currency(product.lst_price) - product.website_price) > 0.1 and website.get_current_pricelist().discount_policy=='without_discount'">
|
|
|
- <del class="text-danger mr8" style="white-space: nowrap;" t-esc="compute_currency(product.website_public_price)" t-options="{'widget': 'monetary', 'display_currency': website.get_current_pricelist().currency_id, 'from_currency': website.currency_id}"/>
|
|
|
- </t>
|
|
|
- <span t-esc="product.website_price" t-options="{'widget': 'monetary', 'display_currency': website.currency_id}"/>
|
|
|
+ <span t-field="product.lst_price"
|
|
|
+ t-field-options='{
|
|
|
+ "widget": "monetary",
|
|
|
+ "display_currency": "website.pricelist_id.currency_id"
|
|
|
+ }'></span>
|
|
|
</span>
|
|
|
</p>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <!-- <a t-att-href="'/shop/product/%s' % slug(prod)">
|
|
|
+ <div class="brand-logo text-center">
|
|
|
+ <img t-att-src="website.image_url(prod, 'image')" t-att-title="prod.name" t-att-alt="prod.name"/>
|
|
|
+ </div>
|
|
|
+ <div t-att-title='prod.name' class="text-center brand-title">
|
|
|
+ <strong><t t-esc="prod.name"/></strong>
|
|
|
+ </div>
|
|
|
+ </a> -->
|
|
|
</t>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -579,14 +584,11 @@
|
|
|
</a>
|
|
|
</div>
|
|
|
<div class="pink-box">
|
|
|
- <ul class='ratings' t-if="request.env.ref('website_sale.product_comment').active">
|
|
|
- <t t-set='rates' t-value="product.rating_get_stats([('website_published', '=', True)])"/>
|
|
|
- <t t-call="portal.message_thread">
|
|
|
- <t t-set="rating_val" t-value="rates.get('avg')" t-if="rates and rates.get('avg')"/>
|
|
|
- <t t-set="object" t-value="product"/>
|
|
|
- <t t-set="only_rating" t-value="1"/>
|
|
|
- <t t-set="display_rating" t-value="True"/>
|
|
|
- <t t-set="disable_composer" t-value="True"/>
|
|
|
+ <ul class='ratings'>
|
|
|
+ <t t-call="rating.rating_card">
|
|
|
+ <t t-set="rating_stat" t-value="product.rating_get_stats([('website_published', '=', True)])"/>
|
|
|
+ <t t-set="max_rate" t-value="5"/>
|
|
|
+ <t t-set="min_rate" t-value="1"/>
|
|
|
</t>
|
|
|
</ul>
|
|
|
<div class="view">
|
|
@@ -603,12 +605,15 @@
|
|
|
<span t-field='product.name'/>
|
|
|
</a>
|
|
|
</p>
|
|
|
- <span class="price">
|
|
|
- <t t-if="(compute_currency(product.lst_price) - product.website_price) > 0.1 and website.get_current_pricelist().discount_policy=='without_discount'">
|
|
|
- <del class="text-danger mr8" style="white-space: nowrap;" t-esc="compute_currency(product.website_public_price)" t-options="{'widget': 'monetary', 'display_currency': website.get_current_pricelist().currency_id, 'from_currency': website.currency_id}"/>
|
|
|
- </t>
|
|
|
- <span t-esc="product.website_price" t-options="{'widget': 'monetary', 'display_currency': website.currency_id}"/>
|
|
|
- </span>
|
|
|
+ <p class="price">
|
|
|
+ <span class="price">
|
|
|
+ <span t-field="product.lst_price"
|
|
|
+ t-field-options='{
|
|
|
+ "widget": "monetary",
|
|
|
+ "display_currency": "website.pricelist_id.currency_id"
|
|
|
+ }'></span>
|
|
|
+ </span>
|
|
|
+ </p>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
@@ -632,14 +637,11 @@
|
|
|
</a>
|
|
|
</div>
|
|
|
<div class="pink-box">
|
|
|
- <ul class='ratings' t-if="request.env.ref('website_sale.product_comment').active">
|
|
|
- <t t-set='rates' t-value="product.rating_get_stats([('website_published', '=', True)])"/>
|
|
|
- <t t-call="portal.message_thread">
|
|
|
- <t t-set="rating_val" t-value="rates.get('avg')" t-if="rates and rates.get('avg')"/>
|
|
|
- <t t-set="object" t-value="product"/>
|
|
|
- <t t-set="only_rating" t-value="1"/>
|
|
|
- <t t-set="display_rating" t-value="True"/>
|
|
|
- <t t-set="disable_composer" t-value="True"/>
|
|
|
+ <ul class='ratings'>
|
|
|
+ <t t-call="rating.rating_card">
|
|
|
+ <t t-set="rating_stat" t-value="product.rating_get_stats([('website_published', '=', True)])"/>
|
|
|
+ <t t-set="max_rate" t-value="5"/>
|
|
|
+ <t t-set="min_rate" t-value="1"/>
|
|
|
</t>
|
|
|
</ul>
|
|
|
<div class="view">
|
|
@@ -658,10 +660,11 @@
|
|
|
</p>
|
|
|
<p class="price">
|
|
|
<span class="price">
|
|
|
- <t t-if="(compute_currency(product.lst_price) - product.website_price) > 0.1 and website.get_current_pricelist().discount_policy=='without_discount'">
|
|
|
- <del class="text-danger mr8" style="white-space: nowrap;" t-esc="compute_currency(product.website_public_price)" t-options="{'widget': 'monetary', 'display_currency': website.get_current_pricelist().currency_id, 'from_currency': website.currency_id}"/>
|
|
|
- </t>
|
|
|
- <span t-esc="product.website_price" t-options="{'widget': 'monetary', 'display_currency': website.currency_id}"/>
|
|
|
+ <span t-field="product.lst_price"
|
|
|
+ t-field-options='{
|
|
|
+ "widget": "monetary",
|
|
|
+ "display_currency": "website.pricelist_id.currency_id"
|
|
|
+ }'></span>
|
|
|
</span>
|
|
|
</p>
|
|
|
</div>
|
|
@@ -684,14 +687,11 @@
|
|
|
</a>
|
|
|
</div>
|
|
|
<div class="pink-box">
|
|
|
- <ul class='ratings' t-if="request.env.ref('website_sale.product_comment').active">
|
|
|
- <t t-set='rates' t-value="product.rating_get_stats([('website_published', '=', True)])"/>
|
|
|
- <t t-call="portal.message_thread">
|
|
|
- <t t-set="rating_val" t-value="rates.get('avg')" t-if="rates and rates.get('avg')"/>
|
|
|
- <t t-set="object" t-value="product"/>
|
|
|
- <t t-set="only_rating" t-value="1"/>
|
|
|
- <t t-set="display_rating" t-value="True"/>
|
|
|
- <t t-set="disable_composer" t-value="True"/>
|
|
|
+ <ul class='ratings'>
|
|
|
+ <t t-call="rating.rating_card">
|
|
|
+ <t t-set="rating_stat" t-value="product.rating_get_stats([('website_published', '=', True)])"/>
|
|
|
+ <t t-set="max_rate" t-value="5"/>
|
|
|
+ <t t-set="min_rate" t-value="1"/>
|
|
|
</t>
|
|
|
</ul>
|
|
|
<div class="view">
|
|
@@ -710,10 +710,11 @@
|
|
|
</p>
|
|
|
<p class="price">
|
|
|
<span class="price">
|
|
|
- <t t-if="(compute_currency(product.lst_price) - product.website_price) > 0.1 and website.get_current_pricelist().discount_policy=='without_discount'">
|
|
|
- <del class="text-danger mr8" style="white-space: nowrap;" t-esc="compute_currency(product.website_public_price)" t-options="{'widget': 'monetary', 'display_currency': website.get_current_pricelist().currency_id, 'from_currency': website.currency_id}"/>
|
|
|
- </t>
|
|
|
- <span t-esc="product.website_price" t-options="{'widget': 'monetary', 'display_currency': website.currency_id}"/>
|
|
|
+ <span t-field="product.lst_price"
|
|
|
+ t-field-options='{
|
|
|
+ "widget": "monetary",
|
|
|
+ "display_currency": "website.pricelist_id.currency_id"
|
|
|
+ }'></span>
|
|
|
</span>
|
|
|
</p>
|
|
|
</div>
|
|
@@ -736,14 +737,11 @@
|
|
|
</a>
|
|
|
</div>
|
|
|
<div class="pink-box">
|
|
|
- <ul class='ratings' t-if="request.env.ref('website_sale.product_comment').active">
|
|
|
- <t t-set='rates' t-value="product.rating_get_stats([('website_published', '=', True)])"/>
|
|
|
- <t t-call="portal.message_thread">
|
|
|
- <t t-set="rating_val" t-value="rates.get('avg')" t-if="rates and rates.get('avg')"/>
|
|
|
- <t t-set="object" t-value="product"/>
|
|
|
- <t t-set="only_rating" t-value="1"/>
|
|
|
- <t t-set="display_rating" t-value="True"/>
|
|
|
- <t t-set="disable_composer" t-value="True"/>
|
|
|
+ <ul class='ratings'>
|
|
|
+ <t t-call="rating.rating_card">
|
|
|
+ <t t-set="rating_stat" t-value="product.rating_get_stats([('website_published', '=', True)])"/>
|
|
|
+ <t t-set="max_rate" t-value="5"/>
|
|
|
+ <t t-set="min_rate" t-value="1"/>
|
|
|
</t>
|
|
|
</ul>
|
|
|
<div class="view">
|
|
@@ -762,10 +760,11 @@
|
|
|
</p>
|
|
|
<p class="price">
|
|
|
<span class="price">
|
|
|
- <t t-if="(compute_currency(product.lst_price) - product.website_price) > 0.1 and website.get_current_pricelist().discount_policy=='without_discount'">
|
|
|
- <del class="text-danger mr8" style="white-space: nowrap;" t-esc="compute_currency(product.website_public_price)" t-options="{'widget': 'monetary', 'display_currency': website.get_current_pricelist().currency_id, 'from_currency': website.currency_id}"/>
|
|
|
- </t>
|
|
|
- <span t-esc="product.website_price" t-options="{'widget': 'monetary', 'display_currency': website.currency_id}"/>
|
|
|
+ <span t-field="product.lst_price"
|
|
|
+ t-field-options='{
|
|
|
+ "widget": "monetary",
|
|
|
+ "display_currency": "website.pricelist_id.currency_id"
|
|
|
+ }'></span>
|
|
|
</span>
|
|
|
</p>
|
|
|
</div>
|
|
@@ -791,14 +790,11 @@
|
|
|
</a>
|
|
|
</div>
|
|
|
<div class="pink-box">
|
|
|
- <ul class='ratings' t-if="request.env.ref('website_sale.product_comment').active">
|
|
|
- <t t-set='rates' t-value="product.rating_get_stats([('website_published', '=', True)])"/>
|
|
|
- <t t-call="portal.message_thread">
|
|
|
- <t t-set="rating_val" t-value="rates.get('avg')" t-if="rates and rates.get('avg')"/>
|
|
|
- <t t-set="object" t-value="product"/>
|
|
|
- <t t-set="only_rating" t-value="1"/>
|
|
|
- <t t-set="display_rating" t-value="True"/>
|
|
|
- <t t-set="disable_composer" t-value="True"/>
|
|
|
+ <ul class='ratings'>
|
|
|
+ <t t-call="rating.rating_card">
|
|
|
+ <t t-set="rating_stat" t-value="product.rating_get_stats([('website_published', '=', True)])"/>
|
|
|
+ <t t-set="max_rate" t-value="5"/>
|
|
|
+ <t t-set="min_rate" t-value="1"/>
|
|
|
</t>
|
|
|
</ul>
|
|
|
<div class="view">
|
|
@@ -817,10 +813,11 @@
|
|
|
</p>
|
|
|
<p class="price">
|
|
|
<span class="price">
|
|
|
- <t t-if="(compute_currency(product.lst_price) - product.website_price) > 0.1 and website.get_current_pricelist().discount_policy=='without_discount' ">
|
|
|
- <del class="text-danger mr8" style="white-space: nowrap;" t-esc="compute_currency(product.website_public_price)" t-options="{'widget': 'monetary', 'display_currency': website.get_current_pricelist().currency_id, 'from_currency': website.currency_id}"/>
|
|
|
- </t>
|
|
|
- <span t-esc="product.website_price" t-options="{'widget': 'monetary', 'display_currency': website.currency_id}"/>
|
|
|
+ <span t-field="product.lst_price"
|
|
|
+ t-field-options='{
|
|
|
+ "widget": "monetary",
|
|
|
+ "display_currency": "website.pricelist_id.currency_id"
|
|
|
+ }'></span>
|
|
|
</span>
|
|
|
</p>
|
|
|
</div>
|
|
@@ -843,14 +840,11 @@
|
|
|
</a>
|
|
|
</div>
|
|
|
<div class="pink-box">
|
|
|
- <ul class='ratings' t-if="request.env.ref('website_sale.product_comment').active">
|
|
|
- <t t-set='rates' t-value="product.rating_get_stats([('website_published', '=', True)])"/>
|
|
|
- <t t-call="portal.message_thread">
|
|
|
- <t t-set="rating_val" t-value="rates.get('avg')" t-if="rates and rates.get('avg')"/>
|
|
|
- <t t-set="object" t-value="product"/>
|
|
|
- <t t-set="only_rating" t-value="1"/>
|
|
|
- <t t-set="display_rating" t-value="True"/>
|
|
|
- <t t-set="disable_composer" t-value="True"/>
|
|
|
+ <ul class='ratings'>
|
|
|
+ <t t-call="rating.rating_card">
|
|
|
+ <t t-set="rating_stat" t-value="product.rating_get_stats([('website_published', '=', True)])"/>
|
|
|
+ <t t-set="max_rate" t-value="5"/>
|
|
|
+ <t t-set="min_rate" t-value="1"/>
|
|
|
</t>
|
|
|
</ul>
|
|
|
<div class="view">
|
|
@@ -869,10 +863,11 @@
|
|
|
</p>
|
|
|
<p class="price">
|
|
|
<span class="price">
|
|
|
- <t t-if="(compute_currency(product.lst_price) - product.website_price) > 0.1 and website.get_current_pricelist().discount_policy=='without_discount'">
|
|
|
- <del class="text-danger mr8" style="white-space: nowrap;" t-esc="compute_currency(product.website_public_price)" t-options="{'widget': 'monetary', 'display_currency': website.get_current_pricelist().currency_id, 'from_currency': website.currency_id}"/>
|
|
|
- </t>
|
|
|
- <span t-esc="product.website_price" t-options="{'widget': 'monetary', 'display_currency': website.currency_id}"/>
|
|
|
+ <span t-field="product.lst_price"
|
|
|
+ t-field-options='{
|
|
|
+ "widget": "monetary",
|
|
|
+ "display_currency": "website.pricelist_id.currency_id"
|
|
|
+ }'></span>
|
|
|
</span>
|
|
|
</p>
|
|
|
</div>
|
|
@@ -895,14 +890,11 @@
|
|
|
</a>
|
|
|
</div>
|
|
|
<div class="pink-box">
|
|
|
- <ul class='ratings' t-if="request.env.ref('website_sale.product_comment').active">
|
|
|
- <t t-set='rates' t-value="product.rating_get_stats([('website_published', '=', True)])"/>
|
|
|
- <t t-call="portal.message_thread">
|
|
|
- <t t-set="rating_val" t-value="rates.get('avg')" t-if="rates and rates.get('avg')"/>
|
|
|
- <t t-set="object" t-value="product"/>
|
|
|
- <t t-set="only_rating" t-value="1"/>
|
|
|
- <t t-set="display_rating" t-value="True"/>
|
|
|
- <t t-set="disable_composer" t-value="True"/>
|
|
|
+ <ul class='ratings'>
|
|
|
+ <t t-call="rating.rating_card">
|
|
|
+ <t t-set="rating_stat" t-value="product.rating_get_stats([('website_published', '=', True)])"/>
|
|
|
+ <t t-set="max_rate" t-value="5"/>
|
|
|
+ <t t-set="min_rate" t-value="1"/>
|
|
|
</t>
|
|
|
</ul>
|
|
|
<div class="view">
|
|
@@ -921,10 +913,11 @@
|
|
|
</p>
|
|
|
<p class="price">
|
|
|
<span class="price">
|
|
|
- <t t-if="(compute_currency(product.lst_price) - product.website_price) > 0.1 and website.get_current_pricelist().discount_policy=='without_discount'">
|
|
|
- <del class="text-danger mr8" style="white-space: nowrap;" t-esc="compute_currency(product.website_public_price)" t-options="{'widget': 'monetary', 'display_currency': website.get_current_pricelist().currency_id, 'from_currency': website.currency_id}"/>
|
|
|
- </t>
|
|
|
- <span t-esc="product.website_price" t-options="{'widget': 'monetary', 'display_currency': website.currency_id}"/>
|
|
|
+ <span t-field="product.lst_price"
|
|
|
+ t-field-options='{
|
|
|
+ "widget": "monetary",
|
|
|
+ "display_currency": "website.pricelist_id.currency_id"
|
|
|
+ }'></span>
|
|
|
</span>
|
|
|
</p>
|
|
|
</div>
|
|
@@ -947,14 +940,11 @@
|
|
|
</a>
|
|
|
</div>
|
|
|
<div class="pink-box">
|
|
|
- <ul class='ratings' t-if="request.env.ref('website_sale.product_comment').active">
|
|
|
- <t t-set='rates' t-value="product.rating_get_stats([('website_published', '=', True)])"/>
|
|
|
- <t t-call="portal.message_thread">
|
|
|
- <t t-set="rating_val" t-value="rates.get('avg')" t-if="rates and rates.get('avg')"/>
|
|
|
- <t t-set="object" t-value="product"/>
|
|
|
- <t t-set="only_rating" t-value="1"/>
|
|
|
- <t t-set="display_rating" t-value="True"/>
|
|
|
- <t t-set="disable_composer" t-value="True"/>
|
|
|
+ <ul class='ratings'>
|
|
|
+ <t t-call="rating.rating_card">
|
|
|
+ <t t-set="rating_stat" t-value="product.rating_get_stats([('website_published', '=', True)])"/>
|
|
|
+ <t t-set="max_rate" t-value="5"/>
|
|
|
+ <t t-set="min_rate" t-value="1"/>
|
|
|
</t>
|
|
|
</ul>
|
|
|
<div class="view">
|
|
@@ -973,14 +963,16 @@
|
|
|
</p>
|
|
|
<p class="price">
|
|
|
<span class="price">
|
|
|
- <t t-if="(compute_currency(product.lst_price) - product.website_price) > 0.1 and website.get_current_pricelist().discount_policy=='without_discount'">
|
|
|
- <del class="text-danger mr8" style="white-space: nowrap;" t-esc="compute_currency(product.website_public_price)" t-options="{'widget': 'monetary', 'display_currency': website.get_current_pricelist().currency_id, 'from_currency': website.currency_id}"/>
|
|
|
- </t>
|
|
|
- <span t-esc="product.website_price" t-options="{'widget': 'monetary', 'display_currency': website.currency_id}"/>
|
|
|
+ <span t-field="product.lst_price"
|
|
|
+ t-field-options='{
|
|
|
+ "widget": "monetary",
|
|
|
+ "display_currency": "website.pricelist_id.currency_id"
|
|
|
+ }'></span>
|
|
|
</span>
|
|
|
</p>
|
|
|
</div>
|
|
|
</div>
|
|
|
+
|
|
|
</t>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -1001,14 +993,11 @@
|
|
|
</a>
|
|
|
</div>
|
|
|
<div class="pink-box">
|
|
|
- <ul class='ratings' t-if="request.env.ref('website_sale.product_comment').active">
|
|
|
- <t t-set='rates' t-value="product.rating_get_stats([('website_published', '=', True)])"/>
|
|
|
- <t t-call="portal.message_thread">
|
|
|
- <t t-set="rating_val" t-value="rates.get('avg')" t-if="rates and rates.get('avg')"/>
|
|
|
- <t t-set="object" t-value="product"/>
|
|
|
- <t t-set="only_rating" t-value="1"/>
|
|
|
- <t t-set="display_rating" t-value="True"/>
|
|
|
- <t t-set="disable_composer" t-value="True"/>
|
|
|
+ <ul class='ratings'>
|
|
|
+ <t t-call="rating.rating_card">
|
|
|
+ <t t-set="rating_stat" t-value="product.rating_get_stats([('website_published', '=', True)])"/>
|
|
|
+ <t t-set="max_rate" t-value="5"/>
|
|
|
+ <t t-set="min_rate" t-value="1"/>
|
|
|
</t>
|
|
|
</ul>
|
|
|
<div class="view">
|
|
@@ -1027,10 +1016,11 @@
|
|
|
</p>
|
|
|
<p class="price">
|
|
|
<span class="price">
|
|
|
- <t t-if="(compute_currency(product.lst_price) - product.website_price) > 0.1 and website.get_current_pricelist().discount_policy=='without_discount'">
|
|
|
- <del class="text-danger mr8" style="white-space: nowrap;" t-esc="compute_currency(product.website_public_price)" t-options="{'widget': 'monetary', 'display_currency': website.get_current_pricelist().currency_id, 'from_currency': website.currency_id}"/>
|
|
|
- </t>
|
|
|
- <span t-esc="product.website_price" t-options="{'widget': 'monetary', 'display_currency': website.currency_id}"/>
|
|
|
+ <span t-field="product.lst_price"
|
|
|
+ t-field-options='{
|
|
|
+ "widget": "monetary",
|
|
|
+ "display_currency": "website.pricelist_id.currency_id"
|
|
|
+ }'></span>
|
|
|
</span>
|
|
|
</p>
|
|
|
</div>
|
|
@@ -1053,14 +1043,11 @@
|
|
|
</a>
|
|
|
</div>
|
|
|
<div class="pink-box">
|
|
|
- <ul class='ratings' t-if="request.env.ref('website_sale.product_comment').active">
|
|
|
- <t t-set='rates' t-value="product.rating_get_stats([('website_published', '=', True)])"/>
|
|
|
- <t t-call="portal.message_thread">
|
|
|
- <t t-set="rating_val" t-value="rates.get('avg')" t-if="rates and rates.get('avg')"/>
|
|
|
- <t t-set="object" t-value="product"/>
|
|
|
- <t t-set="only_rating" t-value="1"/>
|
|
|
- <t t-set="display_rating" t-value="True"/>
|
|
|
- <t t-set="disable_composer" t-value="True"/>
|
|
|
+ <ul class='ratings'>
|
|
|
+ <t t-call="rating.rating_card">
|
|
|
+ <t t-set="rating_stat" t-value="product.rating_get_stats([('website_published', '=', True)])"/>
|
|
|
+ <t t-set="max_rate" t-value="5"/>
|
|
|
+ <t t-set="min_rate" t-value="1"/>
|
|
|
</t>
|
|
|
</ul>
|
|
|
<div class="view">
|
|
@@ -1079,10 +1066,11 @@
|
|
|
</p>
|
|
|
<p class="price">
|
|
|
<span class="price">
|
|
|
- <t t-if="(compute_currency(product.lst_price) - product.website_price) > 0.1 and website.get_current_pricelist().discount_policy=='without_discount'">
|
|
|
- <del class="text-danger mr8" style="white-space: nowrap;" t-esc="compute_currency(product.website_public_price)" t-options="{'widget': 'monetary', 'display_currency': website.get_current_pricelist().currency_id, 'from_currency': website.currency_id}"/>
|
|
|
- </t>
|
|
|
- <span t-esc="product.website_price" t-options="{'widget': 'monetary', 'display_currency': website.currency_id}"/>
|
|
|
+ <span t-field="product.lst_price"
|
|
|
+ t-field-options='{
|
|
|
+ "widget": "monetary",
|
|
|
+ "display_currency": "website.pricelist_id.currency_id"
|
|
|
+ }'></span>
|
|
|
</span>
|
|
|
</p>
|
|
|
</div>
|
|
@@ -1105,14 +1093,11 @@
|
|
|
</a>
|
|
|
</div>
|
|
|
<div class="pink-box">
|
|
|
- <ul class='ratings' t-if="request.env.ref('website_sale.product_comment').active">
|
|
|
- <t t-set='rates' t-value="product.rating_get_stats([('website_published', '=', True)])"/>
|
|
|
- <t t-call="portal.message_thread">
|
|
|
- <t t-set="rating_val" t-value="rates.get('avg')" t-if="rates and rates.get('avg')"/>
|
|
|
- <t t-set="object" t-value="product"/>
|
|
|
- <t t-set="only_rating" t-value="1"/>
|
|
|
- <t t-set="display_rating" t-value="True"/>
|
|
|
- <t t-set="disable_composer" t-value="True"/>
|
|
|
+ <ul class='ratings'>
|
|
|
+ <t t-call="rating.rating_card">
|
|
|
+ <t t-set="rating_stat" t-value="product.rating_get_stats([('website_published', '=', True)])"/>
|
|
|
+ <t t-set="max_rate" t-value="5"/>
|
|
|
+ <t t-set="min_rate" t-value="1"/>
|
|
|
</t>
|
|
|
</ul>
|
|
|
<div class="view">
|
|
@@ -1131,10 +1116,11 @@
|
|
|
</p>
|
|
|
<p class="price">
|
|
|
<span class="price">
|
|
|
- <t t-if="(compute_currency(product.lst_price) - product.website_price) > 0.1 and website.get_current_pricelist().discount_policy=='without_discount'">
|
|
|
- <del class="text-danger mr8" style="white-space: nowrap;" t-esc="compute_currency(product.website_public_price)" t-options="{'widget': 'monetary', 'display_currency': website.get_current_pricelist().currency_id, 'from_currency': website.currency_id}"/>
|
|
|
- </t>
|
|
|
- <span t-esc="product.website_price" t-options="{'widget': 'monetary', 'display_currency': website.currency_id}"/>
|
|
|
+ <span t-field="product.lst_price"
|
|
|
+ t-field-options='{
|
|
|
+ "widget": "monetary",
|
|
|
+ "display_currency": "website.pricelist_id.currency_id"
|
|
|
+ }'></span>
|
|
|
</span>
|
|
|
</p>
|
|
|
</div>
|
|
@@ -1157,14 +1143,11 @@
|
|
|
</a>
|
|
|
</div>
|
|
|
<div class="pink-box">
|
|
|
- <ul class='ratings' t-if="request.env.ref('website_sale.product_comment').active">
|
|
|
- <t t-set='rates' t-value="product.rating_get_stats([('website_published', '=', True)])"/>
|
|
|
- <t t-call="portal.message_thread">
|
|
|
- <t t-set="rating_val" t-value="rates.get('avg')" t-if="rates and rates.get('avg')"/>
|
|
|
- <t t-set="object" t-value="product"/>
|
|
|
- <t t-set="only_rating" t-value="1"/>
|
|
|
- <t t-set="display_rating" t-value="True"/>
|
|
|
- <t t-set="disable_composer" t-value="True"/>
|
|
|
+ <ul class='ratings'>
|
|
|
+ <t t-call="rating.rating_card">
|
|
|
+ <t t-set="rating_stat" t-value="product.rating_get_stats([('website_published', '=', True)])"/>
|
|
|
+ <t t-set="max_rate" t-value="5"/>
|
|
|
+ <t t-set="min_rate" t-value="1"/>
|
|
|
</t>
|
|
|
</ul>
|
|
|
<div class="view">
|
|
@@ -1183,10 +1166,11 @@
|
|
|
</p>
|
|
|
<p class="price">
|
|
|
<span class="price">
|
|
|
- <t t-if="(compute_currency(product.lst_price) - product.website_price) > 0.1 and website.get_current_pricelist().discount_policy=='without_discount'">
|
|
|
- <del class="text-danger mr8" style="white-space: nowrap;" t-esc="compute_currency(product.website_public_price)" t-options="{'widget': 'monetary', 'display_currency': website.get_current_pricelist().currency_id, 'from_currency': website.currency_id}"/>
|
|
|
- </t>
|
|
|
- <span t-esc="product.website_price" t-options="{'widget': 'monetary', 'display_currency': website.currency_id}"/>
|
|
|
+ <span t-field="product.lst_price"
|
|
|
+ t-field-options='{
|
|
|
+ "widget": "monetary",
|
|
|
+ "display_currency": "website.pricelist_id.currency_id"
|
|
|
+ }'></span>
|
|
|
</span>
|
|
|
</p>
|
|
|
</div>
|
|
@@ -1209,14 +1193,11 @@
|
|
|
</a>
|
|
|
</div>
|
|
|
<div class="pink-box">
|
|
|
- <ul class='ratings' t-if="request.env.ref('website_sale.product_comment').active">
|
|
|
- <t t-set='rates' t-value="product.rating_get_stats([('website_published', '=', True)])"/>
|
|
|
- <t t-call="portal.message_thread">
|
|
|
- <t t-set="rating_val" t-value="rates.get('avg')" t-if="rates and rates.get('avg')"/>
|
|
|
- <t t-set="object" t-value="product"/>
|
|
|
- <t t-set="only_rating" t-value="1"/>
|
|
|
- <t t-set="display_rating" t-value="True"/>
|
|
|
- <t t-set="disable_composer" t-value="True"/>
|
|
|
+ <ul class='ratings'>
|
|
|
+ <t t-call="rating.rating_card">
|
|
|
+ <t t-set="rating_stat" t-value="product.rating_get_stats([('website_published', '=', True)])"/>
|
|
|
+ <t t-set="max_rate" t-value="5"/>
|
|
|
+ <t t-set="min_rate" t-value="1"/>
|
|
|
</t>
|
|
|
</ul>
|
|
|
<div class="view">
|
|
@@ -1235,10 +1216,11 @@
|
|
|
</p>
|
|
|
<p class="price">
|
|
|
<span class="price">
|
|
|
- <t t-if="(compute_currency(product.lst_price) - product.website_price) > 0.1 and website.get_current_pricelist().discount_policy=='without_discount'">
|
|
|
- <del class="text-danger mr8" style="white-space: nowrap;" t-esc="compute_currency(product.website_public_price)" t-options="{'widget': 'monetary', 'display_currency': website.get_current_pricelist().currency_id, 'from_currency': website.currency_id}"/>
|
|
|
- </t>
|
|
|
- <span t-esc="product.website_price" t-options="{'widget': 'monetary', 'display_currency': website.currency_id}"/>
|
|
|
+ <span t-field="product.lst_price"
|
|
|
+ t-field-options='{
|
|
|
+ "widget": "monetary",
|
|
|
+ "display_currency": "website.pricelist_id.currency_id"
|
|
|
+ }'></span>
|
|
|
</span>
|
|
|
</p>
|
|
|
</div>
|
|
@@ -1339,7 +1321,7 @@
|
|
|
|
|
|
<div id="myQuoteCarousel" class="psb-inner carousel quotecarousel slide s_kingfisher_pro_testimonials_slider" data-interval="10000">
|
|
|
<div class="carousel-inner">
|
|
|
- <div class="carousel-item text_only active">
|
|
|
+ <div class="item text_only active">
|
|
|
<div class="container">
|
|
|
<div class="row content">
|
|
|
<blockquote>
|
|
@@ -1355,7 +1337,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="carousel-item text_only">
|
|
|
+ <div class="item text_only">
|
|
|
<div class="container">
|
|
|
<div class="row content">
|
|
|
<blockquote>
|
|
@@ -1372,10 +1354,10 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <a class= "carousel-control-prev" data-target= "#myQuoteCarousel" data-slide= "prev">
|
|
|
+ <a class= "carousel-control left" data-target= "#myQuoteCarousel" data-slide= "prev">
|
|
|
<i class='fa fa-angle-left'/>
|
|
|
</a>
|
|
|
- <a class= "carousel-control-next" data-target= "#myQuoteCarousel" data-slide= "next">
|
|
|
+ <a class= "carousel-control right" data-target= "#myQuoteCarousel" data-slide= "next">
|
|
|
<i class='fa fa-angle-right'/>
|
|
|
</a>
|
|
|
</div>
|
|
@@ -1386,35 +1368,32 @@
|
|
|
</template>
|
|
|
|
|
|
<template id="kingfisher_pro_extra_snippet" inherit_id="website.snippets" name="Kingfisher Pro Extra Snippet">
|
|
|
- <xpath expr="//div[@id='o_scroll']" position="inside">
|
|
|
- <div class="o_panel" id="snippet_theme_crafito">
|
|
|
- <div class="o_panel_header">
|
|
|
- <span class="fa-stack">
|
|
|
- <i class="fa fa-circle-o-notch fa-stack-1x"/>
|
|
|
- </span>Kingfisher Pro
|
|
|
- </div>
|
|
|
- <div class="o_panel_body">
|
|
|
- <t t-snippet="kingfisher_pro.s_kingfisher_pro_home_slider"
|
|
|
- t-thumbnail="/kingfisher_pro/static/src/img/icons/home-slider-icon.png"/>
|
|
|
- <t t-snippet="kingfisher_pro.s_kingfisher_pro_promo_snippet"
|
|
|
- t-thumbnail="/kingfisher_pro/static/src/img/icons/promo-snippet.png"/>
|
|
|
- <t t-snippet="kingfisher_pro.s_kingfisher_pro_single_banner_snippet"
|
|
|
- t-thumbnail="/kingfisher_pro/static/src/img/icons/banner-without-slider.png"/>
|
|
|
- <t t-snippet="kingfisher_pro.s_kingfisher_pro_service_snippet"
|
|
|
- t-thumbnail="/kingfisher_pro/static/src/img/icons/service.png"/>
|
|
|
- <t t-snippet="kingfisher_pro.s_kingfisher_pro_testimonials_slider"
|
|
|
- t-thumbnail="/kingfisher_pro/static/src/img/icons/testimonials.png"/>
|
|
|
- <t t-snippet="kingfisher_pro.s_kingfisher_pro_product_category_slider"
|
|
|
- t-thumbnail="/kingfisher_pro/static/src/img/icons/product-category-slider.png"/>
|
|
|
- <t t-snippet="kingfisher_pro.s_kingfisher_pro_brand_custom_slider"
|
|
|
- t-thumbnail="/kingfisher_pro/static/src/img/icons/brand.png"/>
|
|
|
- <t t-snippet="kingfisher_pro.s_kingfisher_pro_blog_custom_snippet"
|
|
|
- t-thumbnail="/kingfisher_pro/static/src/img/icons/blog.png"/>
|
|
|
- <t t-snippet="kingfisher_pro.s_kingfisher_pro_multi_cat_custom_snippet"
|
|
|
- t-thumbnail="/kingfisher_pro/static/src/img/icons/tabs.png"/>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+ <xpath expr="//div[@id='snippet_structure']/div[@class='o_panel_body']" position="inside">
|
|
|
+ <t t-snippet="kingfisher_pro.s_kingfisher_pro_home_slider"
|
|
|
+ t-thumbnail="/kingfisher_pro/static/src/img/icons/home-slider-icon.png"/>
|
|
|
+ <t t-snippet="kingfisher_pro.s_kingfisher_pro_promo_snippet"
|
|
|
+ t-thumbnail="/kingfisher_pro/static/src/img/icons/promo-snippet.png"/>
|
|
|
+ <t t-snippet="kingfisher_pro.s_kingfisher_pro_single_banner_snippet"
|
|
|
+ t-thumbnail="/kingfisher_pro/static/src/img/icons/banner-without-slider.png"/>
|
|
|
+ <t t-snippet="kingfisher_pro.s_kingfisher_pro_service_snippet"
|
|
|
+ t-thumbnail="/kingfisher_pro/static/src/img/icons/service.png"/>
|
|
|
+ </xpath>
|
|
|
+ <xpath expr="//div[@id='snippet_feature']/div[@class='o_panel_body']" position="inside">
|
|
|
+ <t t-snippet="kingfisher_pro.s_kingfisher_pro_testimonials_slider"
|
|
|
+ t-thumbnail="/kingfisher_pro/static/src/img/icons/testimonials.png"/>
|
|
|
+ <t t-snippet="kingfisher_pro.s_kingfisher_pro_product_category_slider"
|
|
|
+ t-thumbnail="/kingfisher_pro/static/src/img/icons/product-category-slider.png"/>
|
|
|
+ <t t-snippet="kingfisher_pro.s_kingfisher_pro_brand_custom_slider"
|
|
|
+ t-thumbnail="/kingfisher_pro/static/src/img/icons/brand.png"/>
|
|
|
+ <t t-snippet="kingfisher_pro.s_kingfisher_pro_blog_custom_snippet"
|
|
|
+ t-thumbnail="/kingfisher_pro/static/src/img/icons/blog.png"/>
|
|
|
+ <t t-snippet="kingfisher_pro.s_kingfisher_pro_multi_cat_custom_snippet"
|
|
|
+ t-thumbnail="/kingfisher_pro/static/src/img/icons/tabs.png"/>
|
|
|
+ </xpath>
|
|
|
+ <xpath expr="//div[@id='snippet_effect']" position="inside">
|
|
|
</xpath>
|
|
|
</template>
|
|
|
|
|
|
-</odoo>
|
|
|
+
|
|
|
+</data>
|
|
|
+</openerp>
|