Skip to content

Commit

Permalink
[CHG] rotordc_website_theme: Move product availability
Browse files Browse the repository at this point in the history
  • Loading branch information
remytms committed Dec 14, 2023
1 parent c457c28 commit 9ba9a5c
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 2 deletions.
11 changes: 9 additions & 2 deletions rotordc_website_theme/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,16 @@
"author": "Coop IT Easy SC",
"license": "AGPL-3",
"application": False,
"depends": ["website", "website_theme_install"],
"depends": [
"website",
"website_theme_install",
"website_sale_product_availability",
],
"excludes": [],
"data": ["views/assets.xml"],
"data": [
"views/assets.xml",
"views/website_sale_product_availability_templates.xml",
],
"demo": [],
"qweb": [],
}
14 changes: 14 additions & 0 deletions rotordc_website_theme/static/src/scss/rotordc.scss
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,20 @@ a:hover {
/*text overlay on thumbnail */
.oe_product section {
background-color: #fff;
padding: 0 15px 0 15px;

h6 {
margin-top: 0.5rem;
}

.product_availability {
color: grey;
margin-bottom: 0.5rem;
}

.product_price > .product_availability {
display: none;
}
}
/*mobile specific*/
@media (max-width: 767.98px) {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>

<template id="products_item_availability" inherit_id="website_sale.products_item">
<xpath
expr="//div[@itemscope='itemscope']//div[hasclass('product_price')]"
position="before"
>
<div name="product_availability" class="product_availability">
<t t-call="website_sale_product_availability.product_availability" />
- More in stock
</div>
</xpath>
</template>
</odoo>

0 comments on commit 9ba9a5c

Please sign in to comment.