[FIX] sale_layout: unify tax displayed field in report

Use the same logic to display taxes as in the default report:
use the tax description and fallback on the name

Already done in report_invoice_document and report_saleorder_document

Closes #14906
This commit is contained in:
Philipp Hug
2017-01-03 15:57:29 +01:00
committed by Martin Trigaux
parent 1aad733dc4
commit 4ea61f6c54
2 changed files with 2 additions and 2 deletions
@@ -22,7 +22,7 @@
<span t-field="l.discount"/>
</td>
<td>
<span t-esc="', '.join(map(lambda x: x.name, l.invoice_line_tax_ids))"/>
<span t-esc="', '.join(map(lambda x: (x.description or x.name), l.invoice_line_tax_ids))"/>
</td>
<td class="text-right">
<span t-field="l.price_subtotal"
@@ -24,7 +24,7 @@
<span t-field="l.discount"/>
</td>
<td class="text-right">
<span t-esc="', '.join(map(lambda x: x.name, l.tax_id))"/>
<span t-esc="', '.join(map(lambda x: (x.description or x.name), l.tax_id))"/>
</td>
<td class="text-right">
<span t-field="l.price_subtotal"