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

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
2523
1
7月 23
3427
3
12月 23
19142
1
2月 22
6175
0
8月 21
2564