Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

1

How to format and/or round amount in email template?

By
Pascal Tremblay
on 12/4/15, 1:39 PM 648 views


 

Hello all,

In an email template, we have this code : 

     Order total : ${object.amount_total} $ ${object.pricelist_id.currency_id.name}


One of our sale order has a total amount of 6,90 $ CAD.

For the moment, the email template returns 6.9 $ CAD.

 

How could we change the dot for a comma and add one more zero to the price?

Thanks to help


UPDATE #1

Here is my actual setup that doesn't work in email template.


UPDATE #2

A discussion is started here :

https://github.com/odoo/odoo/issues/9941#issuecomment-245900710

But we still don't find a solution.

I search and I search the web. Impossible to find a solution!

Pascal Tremblay
on 12/6/15, 8:11 PM

Little up here!!!! Somebody would have a solution?

Pascal Tremblay
on 5/22/16, 5:15 PM
0
HappyOdoo
On 12/5/15, 1:11 AM

hi

The setup of the separator is located under: Settings > Translations > Languages

or Follow the link

https://www.odoo.com/es_ES/forum/help-1/question/how-to-define-the-thousands-separator-88 


I don't think you are right. More, in the link you give to me, it is written 2 or 3 times that this language setup doesn't work with email templates.

Pascal Tremblay
on 12/5/15, 6:56 PM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 12/4/15, 1:39 PM
Seen: 648 times
Last updated: 9/9/16, 9:05 AM