Paper Format in Odoo 17 - Odoo 17 Slides

CelineGeorge1 870 views 13 slides Aug 13, 2024
Slide 1
Slide 1 of 13
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13

About This Presentation

This slide will show, how to add custom paper format in Odoo 17. Odoo emerges as a versatile and powerful platform. With a focus on generating reports for various aspects like sales, purchases, and more, Odoo relies on QWeb reports in the widely used PDF format.


Slide Content

Paper format in odoo 17 Enterprise

Introduction Enterpr ise This slide will show, how to add custom paper format in Odoo 17. Odoo emerges as a versatile and powerful platform. With a focus on generating reports for various aspects like sales, purchases, and more, Odoo relies on QWeb reports in the widely used PDF format. Odoo's flexibility sets it apart, enabling users to define custom paper formats based on their preferences.

Enterprise Let’s create a custom paper format inside the ‘data’ directory.

Enterprise Specifies the name of the custom paper format <field name="name">Patient Reports</field> Sets this paper format as the default for reports. <field name="default" eval="True"/> Indicates that this is a custom paper format. <field name="format">custom</field> Specifies the height and width of the paper in millimeters. <field name="page_height">297</field> <field name="page_width">500</field> z

Enterprise Sets the paper orientation to Landscape or Portrait. <field name="orientation">Landscape</field> Defines the top, bottom, left, and right margins of the paper in millimeters. <field name="margin_top">30</field> <field name="margin_bottom">23</field> <field name="margin_left">5</field> <field name="margin_right">5</field> We can enable and disable the header line in the report. <field name="header_line" eval="True"/> z

Enterprise Report format for the header_line set to True and the orientation set to Landscape. z

Enterprise Report format for the orientation set to Landscape. z

Enterprise Sets the spacing for the header. <field name="header_spacing">20</field> Specifies the dots per inch (dpi) for the report, which indicates the level of detail or resolution in the printed output. A higher DPI value results in a more detailed and clearer print. <field name="dpi">90</field> We can set disable_shrinking to True or False, indicating whether the automatic shrinking functionality is enabled or disabled. <field name="disable_shrinking" eval="True"/> Run the pycharm and upgrade the module. z

Enterprise Let’s go to Settings > Technical > Reporting > Paper Formats.

Enterprise Here we can see the paper format that we created .

Enterprise There is an additional field known as ‘Associated Reports’ which is a One2many field displaying reports linked to this specific paper format. We can use the paper format in our report by referencing its ID.

Enterprise This is how to add custom paper format in Odoo 17.

For More Info. Check our company website for related blogs and Odoo book. Check our YouTube channel for functional and technical videos in Odoo. Enterprise www.cybrosys.com