Skip to Content
Menu
This question has been flagged

Hi,

I'm trying to create a pallet label report to print. 

The report fits best landscape, but the print  drivers do not rotate landscape pages.

What I need to do is build a landscape report, and rotate it 90 degrees to fit on a portrait-oriented pdf page.

Is  there an easy way to do this ?

I am using Enterprise Odoo 12.0

Waiting for your answer

Thank you🙏🙏🙏.


Best regards

YOUNES


Avatar
Discard
Best Answer

Hi,

<div style="transform: rotate(90deg); -webkit-transform: rotate(90deg);">Rotated Text</div>

For the landscape you can create paperformat and select landscape for example:

<record id="paperformat_hrsummary" model="report.paperformat">
<field name="name">Time Off Summary</field>
<field name="default" eval="True"/>
<field name="format">custom</field>
<field name="page_height">297</field>
<field name="page_width">210</field>
<field name="orientation">Landscape</field>
<field name="margin_top">30</field>
<field name="margin_bottom">23</field>
<field name="margin_left">5</field>
<field name="margin_right">5</field>
<field name="header_line" eval="False"/>
<field name="header_spacing">20</field>
<field name="dpi">90</field>
</record>

Regards

Avatar
Discard
Related Posts Replies Views Activity
0
Jan 17
2113
4
Nov 24
5234
1
Mar 24
394
3
Sep 23
22643
0
Feb 24
1716