Skip to Content
Menu
This question has been flagged
2 Replies
5016 Rodiniai

Hello everybody,


When I create an invoice, take a line and press "enter" to write under it, it works, except when generating the invoice, where everything is following.

Do you know why Odoo 13 do that? The result on the invoice is very impractical to read

For example:
- text
- text
- text
Result:
- text - text -text

Thx you
 
Portretas
Atmesti

Hello Alister,

Are you using HTML/QWeb code to change the elements, if so could you provide us with the code you are using.

Thanks,

Autorius

Hello Jack,

I'm in QWEB

I see <br/> but idk where i must write it?


Thx a lot

Autorius

<td align="left" t-attf-style="padding:5px 10px; border:1px solid #{theme_color or '#000000'} !important; border-right:0px solid #{theme_color or '#000000'} !important; font-weight:bold;" width="52%">Description</td>

Best Answer

Odoo v14 I had this working in the QWEB report of the invoice

Portretas
Atmesti

Hi Juhász,
your solution is working. thank you

I also had this problem with the line break. I modified the view code as below, but it shows nothing.
<td colspan="6" name="comment_log">
<t t-set="string_to_brake" t-value="line.name.split('\n')" />
<t t-foreach="string_to_brake" t-as="broken_line">
<span t-esc="broken_line"/>
<br/>
</t>
</td>

Best Answer

Hello Everyone,

I'm encountering the same issue here and obviously I'm not the only one but I didn't find anything anywhere that could "fix" this issue.

To Alister,

Did you find something anywhere?

I'm even ready to buy a plugin or something that could do the fixe.

I'm really surprised that no one is really concerned about this "issue".

Thanks guys !

Portretas
Atmesti