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
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Boekhouding
- Voorraad
- PoS
- Project
- MRP
Deze vraag is gerapporteerd
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.
Geniet je van het gesprek? Blijf niet alleen lezen, doe ook mee!
Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!
AanmeldenGerelateerde posts | Antwoorden | Weergaven | Activiteit | |
---|---|---|---|---|
|
1
dec. 24
|
953 | ||
|
1
nov. 24
|
840 | ||
|
1
nov. 24
|
509 | ||
|
0
sep. 24
|
675 | ||
|
3
feb. 24
|
1076 |