Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
4988 Vizualizări

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
 
Imagine profil
Abandonează

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,

Autor

Hello Jack,

I'm in QWEB

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


Thx a lot

Autor

<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>

Cel mai bun răspuns

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

Imagine profil
Abandonează

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>

Cel mai bun răspuns

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 !

Imagine profil
Abandonează