Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
4132 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit

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

Autor

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

Related Posts Odpovědi Zobrazení Aktivita
1
bře 24
1428
1
čvn 17
9524
0
lis 15
4230
1
čvn 19
5637
1
čvc 25
1759