Odoo Help


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.


Odoo9: How to print an integer without comma?

Drees Far
on 5/19/16, 6:06 AM 336 views

Hello everybody!!!

My friends, i am printing some reports.

But, the problem is that i have some fields type float. So, when i print my reports i get comma.

I want to eliminate the comma without multiplying the number.

So, i there any way except multiplying the number or changing the field from integer to char.

Need an answer firends.

Thanks a lot in advance.

Best Regards.        


Drees Far

--Drees Far--
| 5 2 6
Tunis, Tunisia
--Drees Far--
Drees Far
On 5/19/16, 10:26 AM

Here is the answer for you my friend;

      <span t-esc="'%.0f'%company.cnss"/>

Best regards.

On 7/27/16, 6:02 AM

use in case if you are trying in form or tree 



in py

class sample(models.Model):   


         integer_field = fields.Integer()

in xml

<field name="integer_field" widget="payment"/>
On 7/27/16, 6:37 AM

In qweb report we use ,

<span t-field="doc.total_fine_amount"

              t-field-options='{"widget": "payment"/>

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)


Asked: 5/19/16, 6:06 AM
Seen: 336 times
Last updated: 7/27/16, 6:37 AM