Why Odoo PDF reports need a planned change method
Finance and sales leads usually ask for a change to an invoice, quote or delivery slip for one of three reasons: a field that the standard layout does not show, a logo or address that differs by company, or legal text that a regulator or customer now requires. Before anyone edits anything, the team needs to know how Odoo builds that PDF. A document is defined by a QWeb report template that lays out the fields, an external layout that supplies the header, footer and company branding, and a paper format that sets page size and margins. The HTML produced by those templates is then rendered to PDF by wkhtmltopdf. Most headers and footers that break after a change trace back to one of these four parts, so the rendering step belongs in the test plan as well as the template.
The documents teams change most often are customer invoices, quotations and sales orders, and delivery slips, with vendor bills and payment receipts close behind. Each one can be changed in three ways. Odoo Studio can edit report layouts without code, which is quick but ties the change to the Studio customizations on that database. Inheriting the standard template in a custom module adds or moves elements using XPath, so the change survives as long as the anchor elements still exist. Replacing a template outright copies the whole standard layout, which gives full control but means every standard fix in a later version must be reapplied by hand. This choice is the main driver of upgrade effort, so it should be made per document and written down with the reason.
The edition also limits the options. Odoo's pricing page states that only the Custom plan includes Odoo Studio and custom modules, and that only Custom can be hosted on Odoo.sh or on-premise, so a team on another plan cannot use the same change path. Confirm with Odoo which report and Studio features your plan and hosting type include, and confirm which Odoo version your database is on, since support windows in the supplied facts determine how long a template design will be maintained.
Which report change method fits each Odoo PDF edit
This table compares four ways to change an Odoo PDF report: Studio edits, inherited QWeb templates in a custom module, paper format and external layout settings, and full template replacement. Read each row as a question to answer before choosing, and treat the edition and upgrade columns as items to confirm with Odoo and your own environment.
| Method | What it changes | Typical use | Edition and upgrade exposure |
|---|---|---|---|
| Studio report edits | Adds or adjusts fields on a report through Studio's editor without writing code | Adding a simple field or label to an invoice or quote | Requires Studio, which the pricing page places on the Custom plan. Confirm how Studio edits carry through an upgrade in your version. |
| Inherited QWeb templates in a custom module | Extends a standard report template with XPath-based inheritance, leaving the original template untouched | Adding a custom block, moving a logo, or changing layout structure while keeping the base report | Requires a custom module, also on the Custom plan. Inherited views usually need review at each major upgrade, so the module needs tests and an owner. |
| Paper format and external layout settings | Changes page size, orientation, margins, header and footer height, and the company layout used by reports | Adjusting margins, switching to a different paper size, or fixing header space | Uses settings available in the database without code. Confirm which options your edition exposes and check printed output after each upgrade. |
| Full template replacement | Swaps the entire report template for a new one, bypassing the standard structure | Rebuilding a document layout that inheritance cannot reach, such as a fully branded statutory form | Highest upgrade exposure, because standard fixes to the original template no longer reach your copy. Assign a named maintainer and plan a review before every upgrade. |
How QWeb templates inherit from standard Odoo reports
Odoo report templates should be extended through inheritance, not copied. Standard invoices, delivery slips and quotations are written as QWeb templates. A custom module can inherit a standard template and apply targeted changes to it: an XPath expression identifies the element to find (for example, the table of invoice lines or the totals block), and the change adds, moves, replaces or hides that element. Everything else in the template keeps coming from Odoo. When the business wants a new column, a payment reference or a legal footer, the change is a few lines of inherited markup rather than a rewritten document. For a finance systems lead, the practical question is how many changes sit on top of each standard report and whether anyone can list them. That list is what the upgrade team will need later.
Copied templates drift away from Odoo's released versions. A full copy of a standard report gives the organization a document that works today but no longer receives Odoo's fixes, layout corrections or new fields when the platform moves to a newer release. Each later version then needs someone to compare the copy against the new standard by hand. Odoo's support windows make this a deadline, not a preference: standard support covers the first three years after a major release, and security patches are only provided during standard support, so a frozen copy can outlive the protection it was meant to rely on. Ask the implementer to confirm which reports are inherited and which are copied, and to record the reason for each copy.
How a report edit travels from template to printed PDF
The path starts when a user prints or emails an invoice, which triggers a report action that points to a QWeb template. That template can be changed in three places: a custom module that inherits the template, a Studio edit, or server-side rendering settings. The HTML is then combined with the paper format and external layout and handed to wkhtmltopdf, which produces the PDF. Headers and footers usually break at the last hand-off, so check the paper format margins and the external layout first when a printed page looks wrong.
Where a report edit enters the rendering path and where header and footer problems usually appear.
Who should own a report change: finance, administrators or developers
Finance and operations users own the words and fields that appear on a document: labels, the order of familiar fields, and the terms printed on an invoice, quote or delivery slip. Their changes are usually small and easy to reverse, but wording that carries tax or payment meaning still needs a second pair of eyes.
- Safe changes: Adjusting label text and reordering fields that already appear on the form, or switching on optional blocks such as payment terms where the layout already supports them.
- Needs review: Any text with tax, legal or payment meaning, such as tax notes, reverse-charge wording or bank instructions. Send these to the controller or tax lead before they go live.
- Test after upgrade: Print a sample invoice, quote and delivery slip for each company and currency you use, then compare the PDF with the last approved copy.
- Confirm before handover: Whether the change was made in Studio or in a template owned by a developer, and who may edit it in production.
Check the printed PDF, not the browser preview, against the approved sample before you sign off the change.
System administrators control the paper format, page margins, the company logo and the external layout that wraps every printed document. These settings are global or per company, so one change can alter every document the database prints.
- Safe changes: Updating the company logo and address through company settings, provided the new image fits the header area in a test print.
- Needs review: Paper format size, margins and header height, since they affect every report and any preprinted stationery the business uses.
- Watch the PDF renderer: Broken headers and footers often follow a change in paper format or in the rendering tool version. Confirm which wkhtmltopdf build your server or container image uses, and print multi-page test documents after any change to it.
- Test after upgrade: Paper format and external layout settings, plus a multi-page document and a document with a long line item table.
- Confirm with the vendor or your environment: Which wkhtmltopdf version the Odoo release you run supports on your hosting type, and whether your image pins that version.
Record the paper format, logo file and wkhtmltopdf version in your change log so a restore can recreate the same output.
Developers write inherited QWeb templates in a custom module. The standard template stays untouched, so the change survives updates to core files. Structural changes such as new sections, added columns or different page logic can only be made this way, and they carry the most upgrade risk.
- Inherit, do not copy: Extend the standard template with an inherited view and XPath selectors. A full copy creates a second version that misses every upstream fix.
- Needs review: XPath selectors that target layout elements likely to change between versions, and any Python code that alters report values, which should have a second reviewer.
- Test after upgrade: Automated tests or scripted prints for each changed report, comparing the rendered text against a stored baseline.
- Confirm with the vendor: Whether the target version's report templates still contain the elements your selectors match, following the Odoo upgrade documentation.
- Plan the port: Budget porting time for inherited templates in the upgrade plan, since they move with the rest of your custom modules.
Keep a sample output for each changed document so that a regression shows up in the upgrade test, not in a customer's inbox.
wkhtmltopdf problems that break headers and footers
Most broken Odoo PDFs trace back to a small set of rendering problems, and they tend to surface only after a margin change, a new paper format, a server rebuild or an upgrade. The cards below cover the symptoms teams see, the cause to check first, and what to confirm in the Odoo documentation for the version you run.
Header and footer overlap the body
After a margin or paper format change, the header or footer sits on top of invoice lines, or large blank gaps appear between the header and the first row. The usual cause is that the top and bottom margins in the report paper format no longer match the height of the external layout. Check the paper format margins and header spacing together, then render a multi-page invoice to confirm the body starts below the header on every page. Confirm the paper format fields and their behavior in the Odoo documentation for your version.
Odoo on-premise docsMissing logos and fonts
The PDF renders without the company logo, or with fallback fonts that change line widths and push totals onto another page. wkhtmltopdf fetches images and fonts while it renders, so a missing file, an unreachable web base URL or a blocked internal request can leave assets out. Check that the web base URL in system parameters resolves from the Odoo server itself, and that the fonts used in the template are installed on the host. Confirm how your version resolves assets in the Odoo deployment documentation before changing the base URL.
Page breaks split table rows
A single invoice line is cut across two pages, or the totals block is separated from the lines it summarizes. This happens when rows lack a rule that keeps them together, or when a custom template wraps the table in an element that wkhtmltopdf paginates differently from the browser. Test with invoices that have long descriptions and many lines, not only the sample record. Confirm which CSS page-break behavior your Odoo version's report templates rely on before adding custom rules.
HTML preview differs from the printed PDF
The report looks correct in the browser preview but prints with different spacing, clipped columns or shifted headers. The HTML preview uses the browser layout engine, while the PDF is produced by wkhtmltopdf, which has an older rendering engine and different CSS support. Always check the generated PDF, not the preview, when you sign off a template. Compare both on the same record and note any CSS that the PDF engine ignores or renders differently.
Rendering changes after a package update
A template that printed correctly last month shifts after the server rebuilds, a wkhtmltopdf package is upgraded or the base image changes. The renderer version, its patched Qt build and the system fonts all affect output, so a routine OS or container update can move headers and footers without any Odoo change. Pin the wkhtmltopdf build used in production, keep a set of reference invoices with expected PDFs, and rerun them after each server or Odoo upgrade. Confirm the supported wkhtmltopdf build for your Odoo version in the upgrade notes before you rebuild.
Odoo upgrade docsHow to set up a custom invoice layout step by step
This sequence takes a custom invoice or quote layout from an edition check to a verified template, so the change can be reviewed, rolled back and carried through later upgrades.
Confirm edition and plan first
Confirm which Odoo edition and hosting type you run, and whether your plan includes Odoo Studio and custom modules. The pricing page states that only the Custom plan can be hosted on Odoo.sh or on-premise and that only Custom includes Studio and custom modules, so a Studio-based change on another plan is not available. Ask your partner or Odoo contact to confirm the plan in writing. Done when the edition, hosting type and plan are recorded in the project file alongside the Odoo version in use.
Inventory the documents and fields to change
List every document that will change, such as customer invoices, delivery slips and quotes, and the fields each must show, including taxes, payment terms, bank details and legal footer text. Note which documents already come from Odoo's standard templates and which are fully custom. Record the reports' technical names so developers can find the matching templates later. Done when a signed-off table lists each document, its required fields and the owner who approved the content.
Back up and create a staging copy
Take a full backup of the production database and filestore, then create a staging copy to build and test the layout. On self-hosted installs, Odoo documents database duplication with neutralization for test copies, which prevents test emails and payment connectors from reaching real customers. Confirm the backup restores on a separate server before any template work starts. Done when a restore of the backup has been tested and the staging copy is marked as neutralized.
Choose the change method
Decide between a Studio edit for simple field or text changes and an inherited QWeb template in a custom module for layout, conditional logic or multi-company branching. Studio edits are quick but are tied to the Studio change set, while inherited templates are code that goes through version control and testing. Record the decision and the reason, since it determines how the change is ported at upgrade time. Done when the chosen method and its rationale are approved by the business owner and the technical lead.
Set the paper format and external layout
Configure the paper format, margins and header and footer height in Odoo's report settings, then select the external layout that the company uses. Header and footer problems often originate here, and wkhtmltopdf rendering depends on these values. Keep the paper format consistent across companies unless each company has a documented reason to differ. Done when the paper format and external layout are saved on the staging database and a blank test document shows the intended margins.
Make and review the template change
Apply the template change as either a Studio edit or an inherited template in a module, keeping the change small and limited to the documented fields. Review the diff with a second person who checks field references, conditionals and any hardcoded text. For inherited templates, commit the change to version control so the review and rollback are traceable. Done when the reviewer has approved the diff and the change deploys cleanly to staging without errors in the server log.
Render test documents for each company and currency
Print test invoices, delivery slips and quotes for every company, currency, tax setup and language the layout must support, using realistic sample records. Compare each output with the approved field table and check amounts, rounding and currency symbols. Include at least one document with many lines so the table spans pages. Done when every combination in the test matrix has an approved PDF saved with the change record.
Check headers, footers, page breaks and attachments
Inspect each PDF for header and footer placement on every page, correct page breaks inside line tables, and legal text that does not truncate. Confirm that any attached documents or report-generated files open and that email delivery uses the new template. If the output differs between Odoo's preview and the saved PDF, check the wkhtmltopdf version and the paper format settings. Done when the PDFs pass the checklist on every test page and the exceptions are logged with owners before the change moves toward production.
Security and data exposure in printed and emailed documents
A report template is a view of your data that can be sent outside the company in seconds. The cards below cover the controls to review before a changed invoice, quote or delivery slip reaches a customer, an inbox or a test environment, and they are checks to run, not guarantees that Odoo provides them.
Fields visible beyond access rights
A QWeb template renders whatever fields it references, and a template edit can expose a field that the user who prints the document cannot see in the form view. Check each new field, related field and loop over lines against the access rights and record rules of the users who can trigger the report. Confirm that a report added for one group does not show restricted cost, margin or partner data to another group. Test with a low-privilege user account, not an administrator.
Odoo on-premise docsAttachments and email copies
Many documents are generated as PDF attachments when they are confirmed, printed or emailed, and the stored copy keeps the content from the moment it was rendered. A template change applies to new documents only, so older attachments may show the previous layout and data. Review which report actions attach files to records, who can read those attachments, and whether recipients outside the company receive them by default.
Bank and tax identifiers on documents
Invoice layouts often print the company bank account, IBAN, VAT number and registration numbers from the company record, and a layout that pulls them from a partner or a bank journal can print the wrong account for a customer. Confirm which identifiers are required by your country, which are optional, and which should never appear on a document sent to a particular audience. Ask who approves a change to the footer that carries payment details.
Studio and template editing rights
Studio lets users with the right access edit report layouts, and any user who can edit a template can add a field that reads data they could not otherwise see on a form. Restrict report editing to a named group, log every change in the chatter or your change record, and review the group membership on a schedule. Developer mode should not be needed for routine edits, and access to it should be limited to the people who maintain code.
Odoo pricingTest copies with real customer data
A staging database restored from production contains live customer names, addresses, bank details and open invoices, and report testing can send those documents to real email addresses if outgoing mail is not disabled. Duplicate the database with neutralization for test copies, then confirm that mail servers, payment connectors and scheduled actions are inactive. Restrict who can log in to staging and who can see generated PDFs there.
Odoo source installationReport access in the web client
Report endpoints can be requested directly by URL, so a user who knows a record identifier may try to download a document they were not shown in the interface. Confirm that the report route applies the same access checks as the form, that unauthenticated or portal users only reach documents meant for them, and that the signed-in user list in your test cases includes portal and internal users. Include this check in your security test plan for the environment.
Keeping report changes working through Odoo upgrades
Report changes are among the first things to break during a major Odoo upgrade because they sit on top of the base templates that Odoo rewrites between versions. A QWeb template that inherits the invoice or quote report from an earlier release points at element structure, XPath expressions and field names that may have moved, been renamed or been wrapped in new containers. Studio report edits carry the same risk in a different form: they are stored as changes against the standard report, so the upgrade has to carry them forward and confirm they still render. Treat every inherited template as a dependency on a specific base version, and keep an inventory of each one with the report it extends, the template ID, and the reason it exists.
Review each inherited template against the new base template in the target version before the upgraded test database is opened for sign-off. Compare the base template the custom code extends with the new one, check that every XPath still matches exactly one node, and confirm that the external layout, paper format and header and footer settings still apply. Where a change duplicates something the new version now provides natively, remove it rather than port it. Because the Enterprise upgrade service works from a test copy, you can run this review on the upgraded database and fix templates before production, which is the point to catch these problems.
On the upgraded test database, print each document type that your business sends or stores and check the output against a sample of pre-upgrade PDFs. Cover a customer invoice, a credit note, a quote, a delivery slip, a document from each company in a multi-company database, and invoices in each currency you bill in, including the rounding, tax summary and currency symbol placement. Also confirm the paper format and wkhtmltopdf rendering on the server that will print in production. Odoo's upgrade documentation says the upgraded test database should be tested before production, so schedule this testing as a gate in the project plan. Confirm the current end of standard support for your version with Odoo's support documentation before you set the upgrade date, because the window for security patches depends on it, and confirm with your partner or Odoo how the upgrade service applies to your hosting type.
Limits of report customization to confirm before you start
Report changes look small on screen but depend on what Studio can reach, which plan and edition you run, the hosting type, the fonts and languages in use, and the PDF renderer. Confirm each limit with Odoo's documentation or the person who owns the environment before estimating the work.
What Studio can change in a report
Studio can adjust some report presentation, but it does not replace the underlying QWeb template structure. Ask which elements of the invoice, delivery slip or quote are editable from Studio and which need an inherited template in code. Test one field you need, such as a payment reference or a customer tax number, before deciding the method. Record the answer per document type, because quotes, invoices and delivery slips often differ.
Method availability by plan and edition
Odoo's pricing page states that only the Custom plan can be hosted on Odoo.sh or on-premise, and that Odoo Studio and custom modules are included only in Custom. Confirm which plan and edition your organization holds before choosing Studio or a module, because a method unavailable on your plan changes the whole approach. Ask the vendor in writing whether the chosen method is included in your subscription.
Odoo pricingHosting type changes what you can deploy
Odoo Online, Odoo.sh and on-premise installs differ in what code you can deploy, how staging copies are made and who applies updates. Confirm which hosting type the report change must run on, and whether the environment allows custom module installation. Ask the environment owner who installs modules and where the change is tested before production.
On-premise docsFonts, languages and localization
Invoice layouts often break when a translated label is longer than the English one, when a right-to-left language is active, or when a font is missing on the server. Confirm which languages and currencies the documents must print in, which fonts are installed where the PDF is rendered, and whether the company's localization changes tax labels or number formats. Test each language on the real document, not on sample text.
How wkhtmltopdf affects rendering
Odoo's PDF output depends on the wkhtmltopdf renderer, and its version and build determine how headers, footers, page breaks and CSS are drawn. Confirm which wkhtmltopdf version and build the environment uses, and whether it is the patched Qt build that Odoo documents. A layout that looks correct in the browser can still push a footer onto a new page or lose a background color in the PDF, so check printed output for every paper format.
Conflicts with third-party report modules
Another module that overrides the same report template, or a Studio change on top of an inherited template, can silently replace your edits after an update. Ask which installed modules, including Apps Store and OCA modules, touch the same report views or paper formats. Confirm the install order and list every override in one place, so a module update does not undo the layout the business approved.
How much effort, time and input does a report change need?
What drives the cost and effort of an invoice layout change?
The main driver is how far the change reaches beyond a single field or block. Moving a logo, adding a line or changing a footer on one template is small work. Changing totals, tax breakdowns, multi-page tables, multiple languages or several document types (invoices, quotes and delivery slips) multiplies the number of templates, test cases and edge cases. Paper format, margins and headers and footers that must print correctly across page breaks add further effort, because they need checking on real output and not only in the browser preview. Ask any quote to list each document type and template affected, the number of languages and paper formats, and whether the change is cosmetic or changes what data appears.
Can a finance user make the report change themselves with Studio?
Studio can let a power user make some simple report edits, such as adding or moving a field on a standard document, but it does not cover every layout change. Edits made through Studio sit in the database and can be harder to review, version and port than code. Structural changes, such as new sections, conditional logic, custom totals or inherited templates that must survive upgrades, usually need a developer working in a custom module. Confirm with your own Odoo edition and version whether the specific edit you need is supported in Studio before assigning it to finance staff.
How long does testing take compared with the template edit itself?
In most report projects, testing takes longer than the edit. The template change may be quick, but each affected document needs printed or exported PDF output checked against samples for every paper format, language and data case that appears in production. Long descriptions, many order lines, discounts, credit notes, multi-currency amounts and multi-page documents often expose layout faults that a single sample hides. Ask any quote to state how many test documents will be generated, who signs off each one, and whether testing covers the wkhtmltopdf output that your server actually produces.
What does the work need from our team before it starts?
The fastest route is a set of real samples. Provide current invoices, quotes and delivery slips that show the problem, plus examples of the cases that must still work, such as long line descriptions and multi-page orders. Supply the exact legal and tax text your finance or legal team has approved, including company registration details, payment terms and any required notices, in final wording. Name the approver for layout and for legal content, and provide a test database or staging copy with representative data. Without these, the work tends to stop while the team looks for approvals or realistic data.
What should a quote for a report change itemize?
A useful quote separates the work into discrete lines so you can compare it with an internal estimate. Typical lines are analysis of the current templates and sample documents, design of the changes, development in a custom module or Studio, paper format and header or footer adjustments, test cases per document type and language, client review cycles, deployment to production, and handover documentation. State which items are one-time work and which recur, such as retesting after each Odoo update or wkhtmltopdf change. Ask for the assumptions behind each line, including the number of revision rounds included.
How do report changes affect the cost of a later Odoo upgrade?
Report changes add to upgrade work because inherited QWeb templates and custom report code depend on the structure of the standard template at the time they were written. When Odoo changes that template in a new major version, the inherited XPath expressions can stop matching, and each affected report must be ported and retested. Changes made directly in standard templates, or through Studio edits that are hard to trace, can be more expensive to move. Keeping changes inherited in a small custom module, documenting each change and including the reports in your upgrade test plan usually limits that cost. Check the support windows for your version on Odoo's support documentation before you plan the upgrade date.
How DeployOpen scopes and delivers Odoo report changes
DeployOpen approaches report and invoice layout work as a scoped change to a specific Odoo version and hosting type, not as a design exercise. We confirm which documents change, how they are built today, and how the change will be tested and handed over before any template is edited.
How we scope
- Inventory every quote, invoice, delivery slip and report that needs changes, with its Odoo version and edition
- Record which edits are Studio changes and which would be inherited QWeb templates in custom modules
- Test printing on the paper formats and the wkhtmltopdf setup your server actually uses
- Agree the written scope, deliverables and timeline before any template work begins
How we build
- Inherit standard report templates in a custom module instead of editing core files
- Adjust external layouts, headers, footers and paper formats with documented, version-specific templates
- Build test documents from sample records covering multi-page, multi-currency and long-line cases
- Keep layout changes small so they can be ported when the Odoo version changes
How we hand over
- Deliver the custom module source, with a README listing each overridden template and its purpose
- Provide a test checklist with sample PDFs for each document and paper format
- Document the wkhtmltopdf version, server settings and fallback steps used for printing
- Walk through the change with your finance, sales and IT owners before go-live
How we support
- Engagements are fixed-scope, and ongoing support is available as a retainer
- Retest report output when you move to a new Odoo version or update wkhtmltopdf
- Confirm with your team which support and upgrade windows apply to your Odoo version
- Plan report changes into your upgrade project so they are ported and tested together

