<a class="reference external image-reference" href="https://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.svg">
</a>
<a name="base-report-pdf-combination"></a>
<h2>Base report pdf-combination</h2>
<p>This module provides a basic report class to generate pdf from other pdf files.</p>
<a name="installation"></a>
<h3>Installation</h3>
<p>Make sure you have <code>PyPDF2</code> Python module installed:</p>
<pre>
<code>$ pip install PyPDF2</code>
</pre>
<a name="usage"></a>
<h3>Usage</h3>
<p>An example of pdf-combination report for partners on a module called <cite>module_name</cite>:</p>
<p>A python class</p>
<pre>
<code>from odoo.addons.report_pdf_combination.report.report_pdf_combination import ReportPDFCombination
from odoo import models
class PartnerPDFCombination(ReportPDFCombination):
def get_files_for_pdf_combination_report(self, data, partners):
file_list = []
for obj in partners:
# [...]
file_list.append(file_like_object)
return file_list
PartnerPDFCombination('report.res.partner.pdf_combination', 'res.partner')</code>
</pre>
<p>A report XML record</p>
<pre>
<code><report
id="partner_pdf_combination"
model="res.partner"
string="Print Big Report"
report_type="pdf-combination"
name="module_name.report_name"
file="res_partner"
attachment_use="False"
/></code>
</pre>
<a class="reference external image-reference" href="https://runbot.odoo-community.org/runbot/143/11.0"><img alt="Try me on Runbot" src="https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas" /></a>
<a name="bug-tracker"></a>
<h3>Bug Tracker</h3>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/reporting-engine/issues">GitHub Issues</a>. In case of trouble, please
check there if your issue has already been reported. If you spotted it first,
help us smashing it by providing a detailed and welcomed feedback.</p>
<a name="credits"></a>
<h3>Credits</h3>
<p><a class="reference external" href="https://github.com/OCA/reporting-engine/tree/11.0/report_xlsx">report_xlsx</a> was used as template for this module.</p>
<a name="contributors"></a>
<h4>Contributors</h4>
<ul class="simple">
<li><a class="reference external" href="https://it-projects.info/team/yelizariev">Ivan Yelizariev</a></li>
</ul>
<a name="funders"></a>
<h4>Funders</h4>
<p>The development of this module has been financially supported by:</p>
<ul class="simple">
<li><a class="reference external" href="http://www.e-thos.fr">e-thos SSII</a></li>
</ul>
<a name="maintainer"></a>
<h4>Maintainer</h4>
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
<p>This module is maintained by the OCA.</p>
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.</p>
<p>To contribute to this module, please visit <a class="reference external" href="https://odoo-community.org">https://odoo-community.org</a>.</p>