Skip to Content
Menu
This question has been flagged
2 Replies
2676 Views
<t t-foreach="doc.invoice_ids._get_tax_amount_by_group()" t-as="amount_aja">
<tr>

<td colspan="3" class="meta-head-1"><span t-esc="amount_aja[0] if len(doc.tax_line_ids) > 1 else (doc.tax_line_ids.tax_id.description or doc.tax_line_ids.tax_id.name)" /></td>
<td class="meta-head-1">
<span t-esc="amount_aja[1]" t-options='{"widget": "monetary", "display_currency": doc.currency_id}'/>
</td>
</tr>
</t>
Avatar
Discard
Author Best Answer

 it's great , if i want to show tax description or tax name, do you can help ? 

Avatar
Discard
Best Answer

Hello Herry prasetyo,

Try this :-

<t t-foreach="doc.invoice_ids" t-as="amount_aja">
    <span t-esc="amount_aja[0].amount_tax"/>
</t>


Hope it will works for you.
Thanks,

Avatar
Discard