Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
4134 Widoki

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.

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć

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

Powiązane posty Odpowiedzi Widoki Czynność
1
mar 24
1428
1
cze 17
9525
0
lis 15
4230
1
cze 19
5638
1
lip 25
1760