İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
1463 Görünümler

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

Avatar
Vazgeç
En İyi Yanı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

Avatar
Vazgeç

Code:

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

İlgili Gönderiler Cevaplar Görünümler Aktivite
2
Ağu 25
1882
1
Tem 25
1135
5
Nis 25
4429
0
Kas 24
1646
0
Eki 24
2053