Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
3 Відповіді
6437 Переглядів

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 Відповіді Переглядів Дія
1
лют. 24
2497
1
лип. 23
3402
3
груд. 23
19127
1
лют. 22
6148
0
серп. 21
2525