Merge PDF Attachments: append files and datasheets to invoices, orders, deliveries
by Aerya IT Solutions https://aerya.net$ 20.82
Odoo 17, 18, 19 and 20, Community and Enterprise · Developed in the European Union by Aerya IT Solutions
Merge PDF Attachments: append files and datasheets to invoices, orders, deliveries
Send one PDF instead of five attachments. Mark the files of an invoice, quotation, order, purchase order or delivery and they are merged into its printed PDF, before or after the document. Product datasheets and your general terms join automatically, for print, e-mail and the customer portal.
Product datasheets added once per document
Fixed files per report: cover page, general terms
Print, e-mail and portal download give the same PDF
The screenshots use a fictitious company, invented customers and generated sample files.
Runs on Odoo.sh and on-premise, not on Odoo Online (SaaS), where Odoo does not allow modules with Python code. Please buy the version that matches your database.
in Odoo 18, merged PDFs checked page by page
no warnings
uses the PDF library Odoo ships, Community and Enterprise
Choose the files of each document
Attach the file in the chatter as usual, then Action, Merge PDF files. The window lists every file of the document with its status (PDF and number of pages, image, or why it cannot be merged) and lets you put it before or after the document's own pages, in the order you drag.
Spreadsheets, archives and PDFs that need a password cannot be marked, so a print never surprises you.

One PDF for print, e-mail and portal
The merged PDF is what Print downloads, what the e-mail sends (quotations, orders, purchase orders, invoice sending) and what the customer downloads from the portal. Here the invoice gets the general terms of sale behind it.
When Odoo stores the invoice PDF it sent, the stored copy holds the same pages, and the e-invoice XML embedded in the PDF stays in it. PNG and JPEG photos become one A4 page each.

Product datasheets, added once
Upload the datasheet in the product's Documents and tick Merge into printed documents. Every document that lists the product gets it at the end, once, even when several lines or several products use the same file.

Delivery slips with their datasheets
The delivery slip carries the datasheets of the products it delivers: the warehouse prints one PDF, the customer gets the documentation with the goods.

A rule per report
For each report: Always (every print), On choice (only documents where a user switched merging on) or Never, product datasheets yes or no, fixed files before the document (a cover page) and after it (your general terms), and a size limit. A rule can be kept for one company.
Rules for invoices, quotations and orders, RFQs and purchase orders and delivery slips are created at installation, also for an app you install later.

Purchase orders with drawings
Send the vendor the drawing or the specification in the same PDF as the purchase order. The window works the same on every document that has a rule.

See what is marked
PDF Merge, Marked files lists the files marked on documents you can read; Product datasheets lists the marked product documents.

Getting started
Attach the files in the chatter of the document, as usual.
Mark them with Action, Merge PDF files: before or after the document.
Mark product datasheets in the product's Documents, once for all documents.
Print or send the document: one PDF with everything, also in the e-mail and the portal.
Compatibility
| Versions | Odoo 17, 18, 19 and 20 |
| Editions | Community and Enterprise |
| Modules | Products and Discuss (product, mail); works with Invoicing, Sales, Purchase, Inventory and any PDF report |
| Files | PDF (also protected against editing), PNG and JPEG images |
| Languages | English, Spanish, Romanian |
What it does not merge
The print never fails because of a file. These files are left out and named in a note in the document's chatter: files that are not PDF, PNG or JPEG (spreadsheets, text, archives), PDFs that need a password to open, damaged PDFs, and files over the size limit of the rule.
A document's files go only into that document's own PDF. Marking a file needs the right to edit the document; product datasheets are read with the rights of the user who prints and never come from another company.
Not covered: Word or Excel files converted to PDF, merging into reports printed as HTML or text, an invoice that must stay strictly PDF/A (merged pages are not PDF/A). On the quotation report, product documents that the Odoo quote builder already adds are not added twice.
Explore our other apps
More modules by Aerya IT Solutions for Odoo 18, built to work together.
Questions or a custom quote?
Write to info@aerya.ro for questions about the module, its installation or custom development.
Developed in the European Union by Aerya IT Solutions, Odoo implementation and development. aerya.net
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Lines of code | 1268 |
| Technical Name |
aerya_report_attach_pdf |
| License | OPL-1 |
| Website | https://aerya.net |
Odoo 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