Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2 Ответы
4593 Представления

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

Аватар
Отменить
Лучший ответ
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
Аватар
Отменить
Автор Лучший ответ

Hi,

that works fine on invoices.

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

Thanks.

Аватар
Отменить
Related Posts Ответы Просмотры Активность
3
февр. 16
7418
1
июл. 25
1536
2
сент. 24
1376
3
авг. 24
3249
2
дек. 23
3035