Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion website_sale_stock_ux/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
{
"name": "Website Sale Stock UX",
"category": "base.module_category_knowledge_management",
"version": "18.0.1.1.0",
"version": "18.0.1.2.0",
"author": "ADHOC SA",
"website": "www.adhoc.com.ar",
"license": "AGPL-3",
Expand Down
4 changes: 2 additions & 2 deletions website_sale_stock_ux/views/templates.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
<odoo>
<template id="out_of_stock_ribbon" inherit_id="website_sale.products_item" active="False">
<xpath expr="//t[@t-set='bg_class']" position="after">
<span t-if="product._is_sold_out() and not product.allow_out_of_stock_order" class="o_ribbon o_not_editable o_dirty o_tag_left out_of_stock_ribbon" style="color: var(--o-color-4); background-color:rgb(255, 0, 0)">Out of stock</span>
<span t-if="len(product.product_variant_ids) == 1 and product._is_sold_out() and not product.allow_out_of_stock_order" class="o_ribbon o_not_editable o_dirty o_tag_left out_of_stock_ribbon" style="color: var(--o-color-4); background-color:rgb(255, 0, 0)">Out of stock</span>
</xpath>
<xpath expr="//form[hasclass('oe_product_cart')]" position="attributes">
<attribute name="t-attf-class">oe_product_cart h-100 d-flex #{'out_of_stock_img_blur' if (product._is_sold_out() and not product.allow_out_of_stock_order) else ''} </attribute>
<attribute name="t-attf-class">oe_product_cart h-100 d-flex #{'out_of_stock_img_blur' if (len(product.product_variant_ids) == 1 and product._is_sold_out() and not product.allow_out_of_stock_order) else ''} </attribute>
</xpath>
</template>
<template id="merchant_catalog_availability" inherit_id="website_sale.product">
Expand Down