Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
3 Vastaukset
6503 Näkymät

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

Avatar
Hylkää
Tekijä

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?

Paras vastaus

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

Avatar
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
1
helmik. 24
2543
1
heinäk. 23
3445
3
jouluk. 23
19160
1
helmik. 22
6188
0
elok. 21
2580