跳至內容
選單
此問題已被標幟
2 回覆
4976 瀏覽次數

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 !

頭像
捨棄