Skip to content

Commit 310c35f

Browse files
committed
[FIX] l10n_ar_sale: Fix Sale taxes in preview view
Shoudl use invoice_label instead of description. This is the way Odoo works in another simlar qweb reports like invoices. Ticket 89268
1 parent 92c868c commit 310c35f

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

l10n_ar_sale/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Argentinian Sale Total Fields",
3-
"version": "18.0.1.1.0",
3+
"version": "18.0.1.2.0",
44
"category": "Localization/Argentina",
55
"sequence": 14,
66
"author": "ADHOC SA",

l10n_ar_sale/views/l10n_ar_sale_templates.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
</xpath>
1414

1515
<xpath expr="//span[contains(@t-out, 'line.tax_id')]" position="attributes">
16-
<attribute name="t-out">', '.join(map(lambda x: (x.description or x.name), line.report_tax_id))</attribute>
16+
<attribute name="t-out">', '.join(map(lambda x: (x.invoice_label or x.name), line.report_tax_id))</attribute>
1717
</xpath>
1818

1919

@@ -25,7 +25,7 @@
2525
<!-- use column vat instead of taxes and only list vat taxes-->
2626
<td t-attf-class="text-end {{ 'd-none d-md-table-cell' if report_type == 'html' else '' }}" position="replace">
2727
<td id="taxes" t-if="sale_order.vat_discriminated" t-attf-class="text-right {{ 'd-none d-md-table-cell' if report_type == 'html' else '' }}">
28-
<span t-out="', '.join(map(lambda x: (x.description or x.name), line.tax_id.filtered(lambda x: x.tax_group_id.l10n_ar_vat_afip_code)))"/>
28+
<span t-out="', '.join(map(lambda x: (x.invoice_label or x.name), line.tax_id.filtered(lambda x: x.tax_group_id.l10n_ar_vat_afip_code)))"/>
2929
</td>
3030
</td>
3131

0 commit comments

Comments
 (0)