Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I have some Sales Order Lines that have long descriptions that require line breaks to be readable. I put line breaks into the description (description_sale field), but when I create a pdf to print/send these line breaks go away. Is there any way to force a line break to stay? Is this an issue with rmltopdf, or can I solve it in OpenERP?
You could try something like this:
<para style="terp_default">[[ repeatIn(line.name and line.name.split('\n') or ,'desc_line') ]]</para>
<spacer length="10">[[ desc_line != '' and removeParentNode('spacer') ]]</spacer>
<para style="P3">[[ format(desc_line) or '' ]]</para>
Hope that this helps :)
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.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 11/5/14, 1:53 PM|
|Seen: 4694 times|
|Last updated: 5/22/15, 6:58 PM|