Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
5019 Widoki

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
 
Awatar
Odrzuć

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>

Najlepsza odpowiedź

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

Awatar
Odrzuć

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>

Najlepsza odpowiedź

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 !

Awatar
Odrzuć