Search 1.9 billion lines of Odoo code on GitHub

report_pdf_combination

Author: IT-Projects LLC,Odoo Community Association (OCA)
License: AGPL-3
Branch: 11.0-report_pdf_combination_osiell
Repository: osiell/reporting-engine
Dependencies: base, and web
Languages: JavaScript (38, 10.9%), Python (199, 57.2%), XML (58, 16.7%), and reStructuredText (53, 15.2%)
Other repositories: yelizariev/reporting-engine

<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 import models class PartnerPdfCombination(models.AbstractModel): _name = 'report.module_name.report_name' _inherit = 'report.report_pdf_combination.abstract' 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</code> </pre> <p>A report XML record</p> <pre> <code>&lt;report id=&quot;partner_pdf_combination&quot; model=&quot;res.partner&quot; string=&quot;Print Big Report&quot; report_type=&quot;pdf-combination&quot; name=&quot;module_name.report_name&quot; file=&quot;res_partner&quot; attachment_use=&quot;False&quot; /&gt;</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>