[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
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user