[FIX] website_sale: unable to edit product price

The less refactoring in 5b65befcd8
wrongly removed the css directive that hide some elements in edit mode.

As a side effect, the product price was appearing twice when editing a
product. Commit 44ca4317a9 tempt to fix
it but removed the edition part.

opw:683343
This commit is contained in:
Christophe Simonis
2016-07-30 12:43:21 +02:00
parent 4ca04fdd41
commit 09e943429e
2 changed files with 11 additions and 0 deletions
@@ -8,6 +8,10 @@ html, body {
display: none !important;
}
.editor_enable .css_editable_mode_hidden {
display: none !important;
}
/* ----- Editor (for public user, like forum) ----- */
.note-toolbar {
margin-left: 0 !important;
+7
View File
@@ -434,6 +434,13 @@
<span itemprop="price" style="display:none;" t-esc="product.price"/>
<span itemprop="priceCurrency" style="display:none;" t-esc="website.currency_id.name"/>
</h4>
<h4 class="css_non_editable_mode_hidden">
<span t-field="product.lst_price"
t-field-options='{
"widget": "monetary",
"display_currency": "product.currency_id"
}'/>
</h4>
<h4 class="hidden oe_not_available bg-warning">Product not available</h4>
</div>
</template>