Skip to content

Commit

Permalink
Merge PR #27 into 12.0
Browse files Browse the repository at this point in the history
Signed-off-by remytms
  • Loading branch information
github-grap-bot committed Jan 25, 2024
2 parents 49f24df + a494d30 commit 16c801b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions website_sale_product_availability/views/templates.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
</template>

<template id="product_availability">
<t t-if="not quantity_format" t-set="quantity_format" t-value="'%.2f'" />
<span t-if="product.inventory_availability == 'always'">
<!--
FIXME: This doesn't seem like good i18n practice to me. What
Expand All @@ -25,7 +26,7 @@ License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
website_sale_stock.product_availability, so it's probably
fine.
-->
<t t-esc="product.sudo().virtual_available" /> <t
<t t-esc="quantity_format % product.sudo().virtual_available" /> <t
t-esc="product.uom_name"
/> available
</span>
Expand All @@ -39,7 +40,7 @@ License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
role="img"
aria-label="Warning"
/>
<t t-esc="product.sudo().virtual_available" /> <t
<t t-esc="quantity_format % product.sudo().virtual_available" /> <t
t-esc="product.uom_name"
/> available
</t>
Expand Down

0 comments on commit 16c801b

Please sign in to comment.