Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ

Hello,

I am working with the Py3o report engine in Odoo 11 and using .odt templates to render PDF reports.

The issue I’m facing is that the Py3o template does not render the data  instead, the control structures (e.g. for="o in objects" or if="o.name == '...') are displayed literally in the generated PDF.

However, when I use ${doc.name}, the data is rendered correctly.

Could you please advise how to correctly configure the template (or the report action) so that Py3o control structures are executed rather than printed as text?


 

for="o in objects"

if="o.name== 'test '"

This account is special.

/if


/for


 

Thank you,


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

Odoo 11 has been unsupported for almost 5 years - it was released in 2017 - you might be the only one left using it!!!

You would be way better off using Odoo 17 or Odoo 18 - Odoo 19 comes out in a few weeks!!!!!!!

Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 5 22
3359
4
thg 7 24
22835
1
thg 2 23
2201
1
thg 7 21
4807
1
thg 3 21
3342