summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Lempereur <nle@odoo.com>2019-02-15 10:17:47 +0000
committerNicolas Lempereur <nle@odoo.com>2019-02-15 10:23:43 +0000
commit03e80650c7bf40a5fdac7019a1306e5e1db6565b (patch)
tree8059fe237e1900e55b0aab37d67cade623947fa7
parentbb7b121206ef9af8f7c365552500b1c51f96638e (diff)
[FIX] website_sale_stock: no edit out of stock msg
On a product page on the website, with website_sale_stock there may be an information about the product being out of stock or not. This information is loaded on the fly for the current variant (switching variant will reload it) and so this should not be modified with the editor because: - the saved edition would appear on all product (even if those in stock) - the saved edition is replace quickly with the real state So if we want to change the content, there is no other way than a custom change on JS template website_sale_stock.product_availability or modifying translations. opw-1936179 closes #31135
-rw-r--r--addons/website_sale_stock/views/website_sale_stock_templates.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/website_sale_stock/views/website_sale_stock_templates.xml b/addons/website_sale_stock/views/website_sale_stock_templates.xml
index 6e755321851..9581154c616 100644
--- a/addons/website_sale_stock/views/website_sale_stock_templates.xml
+++ b/addons/website_sale_stock/views/website_sale_stock_templates.xml
@@ -37,7 +37,7 @@
<template id="website_sale_stock_product" inherit_id="website_sale.product" priority="4">
<xpath expr="//a[@id='add_to_cart']" position="after">
- <div class='availability_messages'/>
+ <div class="availability_messages o_not_editable"/>
</xpath>
</template>