Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2 Відповіді
4999 Переглядів

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
 
Аватар
Відмінити

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,

Автор

Hello Jack,

I'm in QWEB

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


Thx a lot

Автор

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

Найкраща відповідь

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

Аватар
Відмінити

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>

Найкраща відповідь

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 !

Аватар
Відмінити