跳至内容
菜单
此问题已终结
2 回复
4581 查看

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.

形象
丢弃
相关帖文 回复 查看 活动
3
2月 16
7414
1
7月 25
1528
2
9月 24
1372
3
8月 24
3241
2
12月 23
3025