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 :)
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
|Asked: 11/5/14, 1:53 PM|
|Seen: 3315 times|
|Last updated: 5/22/15, 6:58 PM|