Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
1099 Lượt xem

Hi


When we want to send our customers an invoice, we get a error after file was send. 

All seems fine with other customers - only this one client doesn't recieve his peppol file.

thx for the help.

David

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hello David,


Hope you are doing well.

Please use this code in your local module.


It appears that the record or field (Many2one) you're trying to access might be None or might not have the text field. To handle this situation safely in Odoo QWeb templates and avoid rendering None values, you can use a conditional check to ensure you only attempt to render the attribute when the record is present. Here's how you can modify the code:


//Code in Comment


Hope this helps!

Thanks & Regards,

Email:  odoo@aktivsoftware.com           

Skype: kalpeshmaheshwari

Ảnh đại diện
Huỷ bỏ

Code:

<t t-if="record">
<t t-esc="record.text" />
</t>

Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 8 25
954
1
thg 7 25
320
5
thg 4 25
1564
0
thg 11 24
1154
0
thg 10 24
1384