Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
992 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit

Code:

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

Related Posts Odpovědi Zobrazení Aktivita
5
dub 25
1318
1
bře 25
801
0
lis 24
1083
0
říj 24
1285
1
říj 24
1881