madmooose
2 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
3 additions and
8 deletions
-
website_decimal_quantity/__manifest__.py
-
website_decimal_quantity/views/website_sale_templates.xml
|
|
@ -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': """ |
|
|
|
|
|
@ -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> |
|
|
|