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

Hi


I found the templates for the invoice emails, however there are many fields i see that appear to be database specific such as "${format_amount(object.amount_total, object.currency_id)}" which appears to be the current invoice total.

I cant seem to find any documentation on how to format these requests and what i can use in the template.


Is there a location / manual with help for this.


Many Thanks

아바타
취소
작성자

Hi, this appears to be direct HTML code, i pulled mine from within the odoo settings (templates for invoice), is there any online documentation of the fields i can use from within the template area?

베스트 답변

Hi,


Instead of using format_amount you can take a reference from the following code to show  price along with the currency.

<span t-esc="current_subtotal" t-options="{&quot;widget&quot;: &quot;monetary&quot;, &quot;display_currency&quot;: o.currency_id}"/>

Thanks,
Ashish Singh (Team Lead)
Webkul Software Private Limited

아바타
취소
관련 게시물 답글 화면 활동
1
2월 24
2769
1
7월 23
3650
3
12월 23
19297
1
2월 22
6408
0
8월 21
2705