콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2 답글
4730 화면

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
7643
1
7월 25
1719
2
9월 24
1512
3
8월 24
3424
2
12월 23
3191