|
|
@ -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> |
|
|
|