Skip to Content
Menu
v 16.0 Third Party 4
Download for v 16.0 Deploy on Odoo.sh
Availability
Odoo Online
Odoo.sh
On Premise
Lines of code 33
Technical Name me_multi_paperformat
LicenseLGPL-3
Websitehttps://www.montexel.com
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Lines of code 33
Technical Name me_multi_paperformat
LicenseLGPL-3
Websitehttps://www.montexel.com

ME Multi Paperformat

Enhanced paperformat selection for multicompany environments

Problem Solved

In standard Odoo, when using multicompany environments, reports often use the paperformat of the main company (usually company ID 1) regardless of which company the user is currently logged into or which company the record belongs to. This can lead to inconsistent report layouts and incorrect paper sizes.

ME Multi Paperformat solves this problem by automatically selecting the correct paperformat based on the company of the record being printed, ensuring consistent and correct report layouts across all companies.

Key Features

Company-Aware Paperformat Selection

Automatically selects the correct paperformat based on the company of the record being printed, ensuring consistent layouts across all your companies.

Smart Detection

Uses intelligent detection to identify the correct record and company when generating reports, whether viewed directly or downloaded.

Technical Implementation

The module extends the get_paperformat method in ir.actions.report to:

  1. First check if the report has a specific paperformat defined
  2. Extract the record ID from the URL path when viewing a report directly
  3. Find the company associated with that record
  4. Use the document layout paperformat for that company if available
  5. Fall back to the company's default paperformat if needed

This implementation ensures that reports always use the correct paperformat without requiring any manual configuration from users.

Important Notes

Be aware of which company you are working with
  • Company Context: Always be aware of which company you are logged into when designing report templates
  • Document Layouts: Configure document layouts for each company to ensure proper paperformat selection
  • Testing: Test reports in different companies to ensure they use the correct paperformats

Compatibility

This module is compatible with Odoo 16.0 Community and Enterprise editions.

Support

For questions or support, please contact us at: bojan.mijuskovic@montex.me

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author, please use the developer contact information. They can usually be found in the description.
Please choose a rating from 1 to 5 for this module.