I have a notes field with a type of text.
On the screen I enter: Note1 Note2 Note3
On the report it comes out as Note1 Note2 Note3
How can I get the line return to be honored in the printed output
Split the string into an array, and iterate over them:
<t t-if="isinstance(o.field, str)"> <t t-set="string_to_output" t-value="o.field.split('\n')" /> <t t-foreach="string_to_output" t-as="string_line"> <span t-esc="string_line"/> <br /> </t> </t>
202 questions
178 answers
34 comments
111k users