[IMP] nfu_ecommerce: add decimal to ribbon

This commit is contained in:
Niels Göttsch 2025-05-08 20:18:09 +02:00 committed by madmooose
parent c338873c2f
commit 4dbf7678bb
5 changed files with 7 additions and 3 deletions

View file

@ -43,6 +43,7 @@ Changelog
:1.2.0: Add Open Packages to Product list
:1.3.0: Adapt new Open Packages format and add indicators
:1.3.1: Remove Max Qty from first page
:1.3.2: Add decimal to ribbon
Bug Tracker
===========

View file

@ -4,7 +4,7 @@
"author": "BAKEUP",
"website": "https://www.bakeup.org",
"category": "website",
"version": "16.0.1.3.1",
"version": "16.0.1.3.2",
"depends": [
"sale_product_configurator",
"website_sale",

View file

@ -6,3 +6,4 @@
:1.2.0: Add Open Packages to Product list
:1.3.0: Adapt new Open Packages format and add indicators
:1.3.1: Remove Max Qty from first page
:1.3.2: Add decimal to ribbon

View file

@ -409,6 +409,8 @@ and after the current order.</p>
</tr>
<tr class="field"><th class="field-name">1.3.1:</th><td class="field-body">Remove Max Qty from first page</td>
</tr>
<tr class="field"><th class="field-name">1.3.2:</th><td class="field-body">Add decimal to ribbon</td>
</tr>
</tbody>
</table>
</div>

View file

@ -45,7 +45,7 @@
<span
t-attf-class="o_ribbon o_not_editable o_ribbon_right"
t-att-style="'color: white; background-color: %s;' % template_packaging_vals['state_color']"
t-out="'+%d'%(template_packaging_vals['open_qty'])"
t-out="'+%.1f'%(template_packaging_vals['open_qty'])"
/>
</t>
</xpath>