DIN 5008 report tweak
by NICO SOLUTIONS - ENGINEERING & IT - Nils Coenen https://www.nico-solutions.de$ 173.61
Availability |
Odoo Online
Odoo.sh
On Premise
|
Odoo Apps Dependencies |
•
Invoicing (account)
• Discuss (mail) |
Lines of code | 597 |
Technical Name |
nsei_din5008_report_tweak |
License | OPL-1 |
Website | https://www.nico-solutions.de |
Versions | 16.0 17.0 18.0 |
Availability |
Odoo Online
Odoo.sh
On Premise
|
Odoo Apps Dependencies |
•
Invoicing (account)
• Discuss (mail) |
Lines of code | 597 |
Technical Name |
nsei_din5008_report_tweak |
License | OPL-1 |
Website | https://www.nico-solutions.de |
Versions | 16.0 17.0 18.0 |

DIN 5008 Report Tweak
A module for optimizing the DIN 5008 report
Key Features
Customizable Font Sizes
The res.company model is extended to control font sizes for the sender's address and footer section in DIN5008 documents, supporting multi-company environments.
Users can select from predefined pixel sizes (e.g., 8px, 9px, 10px) to optimize display, with each company's specific value stored accordingly.
Read more...Country Indicator Settings
The res.company model is extended to control the country indicator in the sender's address of DIN5008 documents, supporting multi-company environments.
Users can choose to display the country as a code, name, or no indication at all, with each company's specific value stored accordingly.
Read more...Representative Roles
The res.company model is extended to associate representative roles (e.g., owner, managing director) with a company, supporting multi-company functionality.
The res.company.representative model links these roles to partners (employees or individuals) and stores their specific role within the company.
Read more...Predefined report footer
The standard report footer can be replaced by a pre-defined section, containing the companies contact details.
The contact details are retrieved from the res company information and displayed with appropriate Font Awesome icons.
Read more...Visibility of legal information
The res.company model is extended to control the visibility of company legal information in DIN5008 documents, supporting multi-company environments.
Users can choose to display the representatives, VAT-ID, company registry number and tax number, with each company's specific value stored accordingly.
Read more...Overview
This module extends the functionality of Odoo's ResCompany and BaseDocumentLayout models to enable greater control over company representative roles, font sizes, and country indicators in DIN 5008 document layouts. Once installed, the customizing parameters will be available in the base document layout wizard.

A new view for the base.document.layout model is introduced to customize the layout and appearance of documents (such as reports or invoices). This customization is tied to the DIN 5008 layout standard (a formal German standard for business letter formatting).
The BaseDocumentLayout model inherits from the standard base.document.layout, adding additional fields that can be configured for document styling, that are conditionally visible when the DIN 5008 layout is selected.
The layout includes a preview of the representatives and their roles within the company. This preview shows a list of representatives (partners) associated with their respective roles e.g., managing director, partner).
The module also modifies the form views to allow easy configuration of these settings. For instance, it introduces a "Representatives and Roles" page in the company form to manage the representatives and their roles.
Functionality
Customizable Font Sizes:
Two fields for font sizes are added to the res.company model to control the font size for the sender's address and footer in DIN5008 documents. This ensures separate handling in multi company environment.
Font size options are predefined as a selection of common pixel sizes (e.g., 8px, 9px, 10px, etc.), and users can choose the appropriate size for both the sender address and footer sections in order to optimize the display.



Country Indicator Settings:
The country indicator field allows the company to choose how the country information should be displayed on documents: as the country code, country name, or no indication at all.




Company Representative Roles:
The module introduces a representative_role_ids field to the res.company model, allowing the specification of various representative roles (such as owner, managing director, etc.) for a company.
The ResCompanyRepresentative model defines these roles, linking them to partners (employees or individuals) and storing their role within the company.




To create "Representative Roles" in Odoo, follow these steps:
- Enable debug mode
- In Debug Mode, go to the Settings menu
- Under Technical, find the section for Company Configuration
- Inside the Company Configuration section, select Representative Roles
- To create a new role, click on the Create button, enter the desired information and save the record. You can also edit or delete existing roles directly from the list by selecting them and making the necessary changes
Predefined report footer:



Visibility of legal information:
This module adds additional fields, to control the visibility of company legal information in reports.
- Show Representatives: Determines whether the company's representatives should be displayed.
- Show VAT-ID: Determines whether the company's VAT ID should be displayed.
- Show Company Registry: Determines whether the company's registry number should be displayed.
- Show tax number: Determines whether the company's tax number should be displayed. This field is only available if l10n_de is installed. The module can check whether the German tax number (Steuernummer) is available.

Compatibility
Odoo V18.0 Community Edition
Odoo V18.0 Enterprise Edition
Note: Please be aware that additional customizations to the DIN 5008 reports may result in unexpected behavior or malfunction of this module. Please ensure that any additional customizations are properly tested and functioning correctly.
License
This module is licensed under OPL-1 license
For more details, check COPYRIGHT and LICENSE files
Get in Touch!
At NICO SOLUTIONS, I know that no two businesses are the same - each comes with its own quirks, challenges, and opportunities. That’s why I don’t believe in one-size-fits-all solutions. Instead, I craft tailor-made Odoo implementations that fit your company like a well-designed construction or circuit board - precise, efficient, and built to last.
Should you have any questions or suggestions, please contact me and I will be more than happy to support you in formulating your requirements and/or simply answer your questions.
Visit my website at www.nico-solutions.de to learn more about my services.
If you have any questions or need further information, feel free to reach out to us.
Email UsOdoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module