Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odgovori
1901 Prikazi

We have recently upgraded our system from odoo 15 to odoo 16 and are encountering some issues with the reports. Our custom module, designed to modify the report template of the "account" application for invoicing (adjusting font style, size, arrangement of text blocks, and the layout of invoice data tables), no longer applies the predefined layout correctly post-upgrade. Moreover, despite assigning German as the preferred language for some clients, the system defaults to English for invoices. The customization in question involves QWeb views to generate PDFs from the invoice data.


Is there anything like a changelog or documentation that could help us identify the necessary adjustments to our custom module or odoo itself. Our goal is to restore the QWeb report's structure and presentation to its intended design, aligning with the functionality we had in odoo 15.

Avatar
Opusti
Best Answer

Hi,
If you have a module developed in version 15 and working fine in 15, first step to do is

* Try installing the module in the 16.0
* see if you have errors on installation
* if not, try printing the report and see if everything okay
* in case of getting traceback at any stage, just fix one by one and go ahead.

See:  How To Migrate Odoo Modules To Another Version


Technical changes in 16:  https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-16.0

Thanks

Avatar
Opusti
Best Answer

Hi Holthausen,

If you're looking to generate a new report in Odoo V16 based on an existing report from V15, you can follow the steps outlined in  "How to Create a Custom PDF Report in Odoo 16".

The blog post provides a detailed guide on how to create a custom PDF report in Odoo 16. While the guide is specifically written for Odoo 16, you can use it as a reference to create a similar report in Odoo 16 based on your existing report from V15.

Here's a summary of the steps you can follow:

  1. Understand Report Structure: Review the structure and layout of the existing report from V15 that you want to replicate in Odoo 16.
  2. Create a New Report Template: Use Odoo's reporting framework to create a new report template in Odoo 16. You can use the existing report as a reference for the layout and structure.
  3. Define Data Source: Define the data source for your new report. This could involve querying the necessary data from Odoo models or other data sources.
  4. Customize Report Layout: Customize the layout of your new report template to match the design of the existing report from V15. You can use HTML/CSS and Odoo's QWeb templating language for this purpose.

By following the steps outlined in the blog post and using your existing report from V15 as a reference, you should be able to create a custom PDF report in Odoo 16 that meets your requirements.

Hope it helps!

Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
0
avg. 23
1676
1
jul. 23
2224
1
maj 24
2952
2
jan. 24
1543
1
apr. 25
1035