Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3 ตอบกลับ
6513 มุมมอง

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?

คำตอบที่ดีที่สุด

Have you seen https://www.odoo.com/documentation/user/13.0/discuss/advanced/email_template.html ?


อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
Email Template subject parameters แก้ไขแล้ว
1
ก.พ. 24
2553
1
ก.ค. 23
3449
3
ธ.ค. 23
19162
Failed to render template แก้ไขแล้ว
1
ก.พ. 22
6197
0
ส.ค. 21
2582