[FIX] website_sale: user can't edit the price.

This commit is contained in:
Christophe Matthieu 2014-06-23 16:38:04 +02:00
parent e862ff7033
commit 1d1b6e79b5
2 changed files with 10 additions and 5 deletions

View File

@ -47,16 +47,14 @@
popover: { next: _t("Continue") },
},
{
element: '.product_price .oe_currency_value',
element: '.product_price .oe_currency_value:visible',
sampleText: '20.50',
placement: 'left',
title: _t("Change the price"),
content: _t("Edit the price of this product by clicking on the amount."),
},
{
waitNot: '.product_price .oe_currency_value:containsExact(1.00)',
waitNot: '.product_price .oe_currency_value:visible:containsExact(1.00)',
element: '#wrap img.product_detail_img',
placement: 'top',
title: _t("Update image"),

View File

@ -408,7 +408,7 @@
<template id="product_price">
<div itemprop="offers" itemscope="itemscope" itemtype="http://schema.org/Offer" class="product_price mt16">
<h4 class="oe_price_h4">
<h4 class="oe_price_h4 css_editable_mode_hidden">
<t t-if="product.lst_price != product.price">
<span class="text-danger" style="text-decoration: line-through;"
t-field="product.lst_price"
@ -426,6 +426,13 @@
<span itemprop="price" style="display:none;" t-esc="product.price"/>
<span itemprop="priceCurrency" style="display:none;" t-esc="website.pricelist_id.currency_id.name"/>
</h4>
<h4 class="css_editable_mode_display" style="display: none;">
<span t-field="product.lst_price"
t-field-options='{
"widget": "monetary",
"display_currency": "website.pricelist_id.currency_id"
}'/>
</h4>
<h4 class="hidden oe_not_available bg-warning">Product not available</h4>
</div>
</template>