Skip to Content
Menu
This question has been flagged
1 Reply
2854 Views

for example, in .py file:

....

x=fields.Html()

.....

self.x='test1'+'\n'+'test2'

...

then on Odoo page, I just will see as below:

test1 test2


how shll I see them in two lines as below

test1

test2


I mean I use "\n" which just insert an "blank" rather than "enter"; how to inset an "enter" into the line?


Avatar
Discard
Best Answer

"enter" in html is <br/>

So you should try <br/> instead of \n

Avatar
Discard
Related Posts Replies Views Activity
3
Sep 24
10000
2
Feb 24
606
1
Jul 23
1011
2
Jun 23
1402
1
May 23
11466