Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
4554 Widoki

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

Awatar
Odrzuć
Najlepsza odpowiedź
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
Awatar
Odrzuć
Autor Najlepsza odpowiedź

Hi,

that works fine on invoices.

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

Thanks.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
3
lut 16
7342
1
lip 25
1414
2
wrz 24
1310
3
sie 24
3161
2
gru 23
2963