Skip to content

Commit f148d2b

Browse files
committed
wip extra fix
closes #400 Signed-off-by: Juan Ignacio Rivero <jr@adhoc.inc>
1 parent f77cebc commit f148d2b

1 file changed

Lines changed: 15 additions & 16 deletions

File tree

l10n_ar_website_sale_ux/views/l10n_ar_website_sale_ux.xml

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,22 @@
1919
<template id="products_item" name="Products item" inherit_id="website_sale.products_item">
2020
<xpath expr="//div[hasclass('product_price')]" position="inside">
2121
<t t-if="not website.prevent_zero_price_sale">
22-
<t t-set='vat_tax' t-if="request.env['website'].browse(website.id).show_line_subtotals_tax_selection == 'tax_excluded'" t-value='product.sudo().taxes_id.filtered(lambda x: x.company_id == website.company_id and x.tax_group_id.l10n_ar_vat_afip_code)'/>
23-
<span style="white-space: nowrap; padding-left: 5px; font-size: 85%;" t-if="vat_tax" t-esc="'(+' + vat_tax.name + ')'" />
22+
<t t-if="request.env['website'].browse(website.id).show_line_subtotals_tax_selection == 'tax_excluded'">
23+
<t t-set='vat_tax' t-value='product.sudo().taxes_id.filtered(lambda x: x.company_id == website.company_id and x.tax_group_id.l10n_ar_vat_afip_code)'/>
24+
<span style="white-space: nowrap; padding-left: 5px; font-size: 85%;" t-if="vat_tax" t-esc="'(+' + vat_tax.name + ')'" />
25+
</t>
26+
<t t-else="request.env['website'].browse(website.id).show_line_subtotals_tax_selection == 'tax_included'">
27+
<div>
28+
<small t-if="website.company_id.country_code == 'AR'" class="d-block mt-1">Precio Sin Impuestos Nacionales
29+
<span t-esc="template_price_vals['price_tax_excluded']"
30+
t-options='{
31+
"widget": "monetary",
32+
"display_currency": website.currency_id,
33+
}'/>
34+
</small>
35+
</div>
36+
</t>
2437
</t>
2538
</xpath>
2639
</template>
27-
<template id="products_add_to_cart" inherit_id="website_sale.products_add_to_cart">
28-
<xpath expr="//div[hasclass('o_wsale_product_sub')]" position="after">
29-
<t t-if="not website.prevent_zero_price_sale">
30-
<small t-if="website.company_id.country_code == 'AR' and request.env['website'].browse(website.id).show_line_subtotals_tax_selection == 'tax_included'">Precio Sin Impuestos Nacionales
31-
<span t-esc="template_price_vals['price_tax_excluded']"
32-
t-options='{
33-
"widget": "monetary",
34-
"display_currency": website.currency_id,
35-
}'/>
36-
</small>
37-
</t>
38-
</xpath>
39-
</template>
40-
4140
</odoo>

0 commit comments

Comments
 (0)