Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
2 Replies
9773 Tampilan

I have created the report in a custom format. paper size below.

but the output did not come in a custom format. the output of the paper size comes correct. output rendering comes in A4 size.

I have changed the qweb-pdf to qweb-html also showed the A4 size.

Anyone help me with this

Avatar
Buang
Jawaban Terbai

Pay attention to the field name="dpi" field  if it is set to something in the report or in the paper size settings page in Odoo ..

As the rendering is generated in PDF, it is better to set nothing in this field and leave it as default, and let the printer driver determine the correct DPI for printing.

We encountered the problem using a transfer label printer, which is 300 dpi, and if this value is set to paper size then the render is very small - leaving the field blank the rendering is fine size in the chosen label format.

Avatar
Buang
Jawaban Terbai

You might need to configure the paper format for this report.

Activate developer mode Settings > Technical >paper format

You can create the customer paper format and then associate your custom reports to this format "Associated reports"

Alternately from general settings > Configure document layout and selecting paper format

Avatar
Buang
Penulis

<record id="paperformat_id_card_qweb_report"

model="report.paperformat">

<field name="name">ID CARD</field>

<field name="default" eval="True"/>

<field name="format">custom</field>

<field name="page_height">86</field>

<field name="page_width">55</field>

<field name="orientation">Portrait</field>

<field name="margin_top">0</field>

<field name="margin_bottom">0</field>

<field name="margin_left">0</field>

<field name="margin_right">0</field>

<field name="header_line" eval="False"/>

<field name="header_spacing">10</field>

<field name="dpi">90</field>

</record>

I have given this paper format in my application data. After installing the application I have checked in technical > report > my report and paper format set correctly but rendering output not came.

Post Terkait Replies Tampilan Aktivitas
1
Des 24
1128
1
Nov 24
954
1
Nov 24
560
0
Sep 24
724
3
Feb 24
1123