Browse Source

[FIX] website_decimal_quantity: remove unnecassary translation in inherit

pull/340/head
Niels Göttsch 10 months ago
parent
commit
5137658920
  1. 2
      website_decimal_quantity/__manifest__.py
  2. 9
      website_decimal_quantity/views/website_sale_templates.xml

2
website_decimal_quantity/__manifest__.py

@ -21,7 +21,7 @@
#############################################################################
{
'name': 'Website Decimal Quantity',
'version': '16.0.1.0.0',
'version': '16.0.1.0.1',
'category': 'Website/Website',
'summary': 'The app allows to select quantity in decimal for products in Website/Shop',
'description': """

9
website_decimal_quantity/views/website_sale_templates.xml

@ -14,13 +14,8 @@
displays the total number of items in the cart with one decimal point precision. -->
<template id="cart_popover_decimal" inherit_id="website_sale.cart_popover"
name="Cart Popover">
<xpath expr="//a[hasclass('btn-primary')]" position="replace">
<a role="button" class="btn btn-primary" href="/shop/cart">
View Cart (
<span class="o_wsale_cart_quantity"
t-esc="round(sum(website_sale_order.mapped('website_order_line.product_uom_qty')), 1)"/>
item(s))
</a>
<xpath expr="//a[hasclass('btn-primary')]/span[hasclass('o_wsale_cart_quantity')]" position="attributes">
<attribute name="t-esc">round(sum(website_sale_order.mapped('website_order_line.product_uom_qty')), 1)</attribute>
</xpath>
</template>
</odoo>

Loading…
Cancel
Save