Skip to Content
Menu
This question has been flagged
1 Reply
771 Views

I have created a custom report with this below code.But when i try to print this report .It returns blank page.I tried by using web.external_layout,basic_layout .Installed  wkhtmltopdf .Nothing helps me.

                               

id="monthly_sales_report">
t-call="web.html_container">
t-foreach="docs" t-as="o">
t-call="web.internal_layout">
class="page">

class="table table-bordered" style="border: 1px solid #000;">
t-set="counter" t-value="0"/>










t-foreach='o.order_line' t-as='line'>










style="text-align: center;color: #000;text-color: #000;">Product style="text-align: center;color: #000;text-color: #000;">Quantity style="text-align: center;color: #000;text-color: #000;">Amount style="text-align: center;color: #000;text-color: #000;">Order Date
style="height:5px;text-align: center;color: #000;text-color: #000">t-esc="line.product_id.name"/> style="height:5x;text-align: center;color: #000;text-color: #000;">t-esc="line.qty_invoiced"/> style="height:5x;text-align: center;color: #000;text-color: #000;">t-esc="line.price_unit"/> style="height:5x;text-align: center;color: #000;text-color: #000;">t-esc="doc.date_order"/>












 

Can anyone please help me.

Avatar
Discard
Best Answer

Hi,

Please check the values in the relevant docs data in your python files,

for better assistance you can refer to the following blog

https://www.cybrosys.com/blog/how-to-create-pdf-report-odoo-13

Regards

Avatar
Discard