Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
790 Представления

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

Аватар
Отменить
Лучший ответ

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

Аватар
Отменить

Code:

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

Related Posts Ответы Просмотры Активность
5
апр. 25
813
1
мар. 25
603
0
нояб. 24
815
0
окт. 24
974
1
окт. 24
1544