Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] website_decimal_quantity: remove unnecassary translation in inh… #340

Open
wants to merge 1 commit into
base: 16.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion website_decimal_quantity/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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': """
Expand Down
9 changes: 2 additions & 7 deletions website_decimal_quantity/views/website_sale_templates.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>