Skip to content

Commit e9ba4ae

Browse files
committed
[FIX] repair: display description of tax in repair report
before this commit, even if the tax description is set in the tax, in the repair report it always displays the tax name. after this commit, as in the sales, purchase and invoice reports, if tax description is set, repair order will display the tax description in the report. closes odoo#113082 Signed-off-by: William Henrotin (whe) <whe@odoo.com>
1 parent dad9d98 commit e9ba4ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

addons/repair/report/repair_templates_repair_order.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
<span t-field="line.price_unit"/>
8282
</td>
8383
<td class="text-center">
84-
<span t-esc="','.join(map( lambda x: x.name, line.tax_id))"/>
84+
<span t-esc="','.join(map( lambda x: x.description or x.name, line.tax_id))"/>
8585
</td>
8686
<td class="text-end o_price_total">
8787
<span t-field="line.price_subtotal" t-options='{"widget": "monetary", "display_currency": o.pricelist_id.currency_id}'/>
@@ -104,7 +104,7 @@
104104
<span t-field="fees.price_unit"/>
105105
</td>
106106
<td class="text-center">
107-
<span t-esc="','.join(map( lambda x: x.name, fees.tax_id))"/>
107+
<span t-esc="','.join(map( lambda x: x.description or x.name, fees.tax_id))"/>
108108
</td>
109109
<td class="text-end o_price_total">
110110
<span t-field="fees.price_subtotal"

0 commit comments

Comments
 (0)