[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.2.0: Add Open Packages to Product list
:1.3.0: Adapt new Open Packages format and add indicators :1.3.0: Adapt new Open Packages format and add indicators
:1.3.1: Remove Max Qty from first page :1.3.1: Remove Max Qty from first page
:1.3.2: Add decimal to ribbon
Bug Tracker Bug Tracker
=========== ===========

View file

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

View file

@ -5,4 +5,5 @@
:1.1.2: Make publish on website multi company :1.1.2: Make publish on website multi company
:1.2.0: Add Open Packages to Product list :1.2.0: Add Open Packages to Product list
:1.3.0: Adapt new Open Packages format and add indicators :1.3.0: Adapt new Open Packages format and add indicators
:1.3.1: Remove Max Qty from first page :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>
<tr class="field"><th class="field-name">1.3.1:</th><td class="field-body">Remove Max Qty from first page</td> <tr class="field"><th class="field-name">1.3.1:</th><td class="field-body">Remove Max Qty from first page</td>
</tr> </tr>
<tr class="field"><th class="field-name">1.3.2:</th><td class="field-body">Add decimal to ribbon</td>
</tr>
</tbody> </tbody>
</table> </table>
</div> </div>

View file

@ -45,7 +45,7 @@
<span <span
t-attf-class="o_ribbon o_not_editable o_ribbon_right" 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-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> </t>
</xpath> </xpath>