Skip to Content
Menu
This question has been flagged
2 Replies
3803 Views

Hi,

still using Odoo 8 I miss it to have the possible different taxes under subtotal of affers, invoices aso.
In Germany we have a tax rate of 7% and one of 19%.
If I offer a product with 7% and one with 19% in the same offer there is only the total sum of taxes calculated and shown with the folloing line in the template:

<td>Taxes</td>
<td class="text-right">
 <span t-field="o.amount_tax" t-field-options="{&quot;widget&quot;: &quot;monetary&quot;, &quot;display_currency&quot;: &quot;o.pricelist_id.currency_id&quot;}"/>
</td>

How can I get something like a loop to compute each necessary tax and have it printed?

<tr t-foreach="o.amount_tax" ....> could be a start

Thanks for any help

Avatar
Discard
Best Answer
Hello Max Mustermann,
for Odoo V8, you need to use
tax_lines field for print each Taxes Details in Invoice Report.

<t t-if="o.tax_line">
<t t-foreach="o.tax_line" t-as="tax">
     <span t-esc="tax.name" /> :
<span t-esc="tax.amount" />
     <br/>
</t>
</t>
also see below image for field information.
============================================

Thanks
Avatar
Discard
Author Best Answer

Hi,

that works fine on invoices.

However, how to do that in sales orders. I did not find a way.

Thanks.

Avatar
Discard
Related Posts Replies Views Activity
3
Feb 16
6042
2
Sep 24
221
0
Sep 24
144
3
Aug 24
1765
2
Dec 23
1602