Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
4214 Prikazi

Hello,

How can we get in a same report some page with portrait orientation and some other page in landscape orientation?

Thank you for your help.

Avatar
Opusti
Best Answer

Hello Henintsoa Ariel RATOLOJANAHARY,

Odoo default is not supporting this functionality but yes, you may still get it by customising reports.


You must utilise two paper formats for that: one for landscape orientation and one for portrait orientation.

Please find below code for Paperformat it may help you,

Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari

Avatar
Opusti

<record id="paperformat_portrait" model="report.paperformat">
<field name="name">Paperformat Portrait</field>
<field name="default" eval="True"/>
<field name="format">A4</field>
<field name="orientation">Portrait</field>
<field name="margin_top">45</field>
<field name="margin_bottom">50</field>
<field name="margin_left">7</field>
<field name="margin_right">7</field>
<field name="header_line" eval="False"/>
<field name="header_spacing">40</field>
<field name="dpi">90</field>
</record>

<record id="paperformat_landscape" model="report.paperformat">
<field name="name">Paperformat Portrait</field>
<field name="default" eval="True"/>
<field name="format">A4</field>
<field name="orientation">Landscape</field>
<field name="margin_top">45</field>
<field name="margin_bottom">50</field>
<field name="margin_left">7</field>
<field name="margin_right">7</field>
<field name="header_line" eval="False"/>
<field name="header_spacing">40</field>
<field name="dpi">90</field>
</record>

When you are finished, use the t-call command to call this format depending on conditions.

Avtor

Thank you. i will try and get back to you.

Related Posts Odgovori Prikazi Aktivnost
1
mar. 24
1480
1
jun. 17
9586
0
nov. 15
4277
1
jun. 19
5675
1
jul. 25
1871