콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
1139 화면

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>

관련 게시물 답글 화면 활동
2
8월 25
985
1
7월 25
358
5
4월 25
1602
0
11월 24
1165
0
10월 24
1390