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

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

아바타
취소
베스트 답변

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.

아바타
취소
베스트 답변

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

아바타
취소
작성자

<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.

관련 게시물 답글 화면 활동
1
12월 24
1778
1
11월 24
1498
1
11월 24
894
0
9월 24
1079
3
2월 24
1573