Odoo Help


How to make space in qweb report?

Mohammed Khamis
on 2/18/15, 4:22 AM 2,878 views

please help me how to make space in qweb report between two words?

Thank you so much



| 6 4 7
Lodz, Poland

On 2/18/15, 4:29 AM
  • Solution 1


  • Solution 2, this hack

<t t-set="foo" t-value=" '     '.replace(' ',u'\xa0').encode('utf-8') "/>
<t t-esc="foo"/>

in this way you can replace all instances of spaces

<t t-set="foo" t-value="o.name.replace(' ',u'\xa0').encode('utf-8')"/>


Nothing beats CDATA :) Always works and its less heavy than the replace and encode, meaning slightly faster loading.

on 2/18/15, 4:37 AM

Yes, you're right... but only sometimes do not know where it should be :)

on 2/18/15, 4:57 AM

I vote for solution 2

John Chua
on 12/25/15, 7:25 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 platform 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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 2/18/15, 4:22 AM
Seen: 2878 times
Last updated: 3/16/15, 8:10 AM