Search 1.9 billion lines of Odoo code on GitHub

jasper_report

Author: MultidadosTI
License: LGPL-3
Branch: master
Repository: haylahi/multidadosti-addons
Dependencies: base
Languages: HTML (102, 17.1%), PO File (120, 20.1%), Python (246, 41.1%), XML (94, 15.7%), and reStructuredText (36, 6.0%)

<a name="jasper-report"></a> <h2>Jasper Report</h2> <p>This module allows to print report using Jasper Report Builder.</p> <p>Through the <em>pyreportjasper</em> Python api, you can print report using Jasper Report tool. This modules are used like regular ODOO reports.</p> <a name="configuration"></a> <h2>Configuration</h2> <p>After installing the module you can go to <em>Settings &gt; Dashboard</em> and active developer mode (you must be admin user).</p> <p>After, go to <em>Settings &gt; Technical &gt; Jasper Reports &gt; Configure Database Connection</em> to configure database configure.</p> <p>When this module provide support to PostgreSQL only. Others database support will be added after. In the follow screen, add database data like host, port and other relevant fields.</p> <p><em>Data Source Name: a string name to identify record. You can add any value here. *Database Name: your database name. Default is database of Odoo. *Host: hots of database. Default value is *localhost</em>. <a href="#id1"><span class="problematic" id="id2">*</span></a>Port: access port of your database. Default is 5432 (PostgreSQL port) <a href="#id3"><span class="problematic" id="id4">*</span></a>Connector: plugin to connect in database. When, this only provide in PostgreSQL. <a href="#id5"><span class="problematic" id="id6">*</span></a>User: User to connect in database. <a href="#id7"><span class="problematic" id="id8">*</span></a>Password: Password of database user.</p> <img alt="static/description/screenshot_02.png" src="static/description/screenshot_02.png" style="width: 400px;" /> <p>After insert the fields, press the button</p> <img alt="static/description/screenshot_03.png" src="static/description/screenshot_03.png" style="width: 400px;" /> <p>A window will appeared with a message that connection is successfully. Otherwise, a error message will be show.</p> <img alt="static/description/screenshot_04.png" src="static/description/screenshot_04.png" style="width: 400px;" /> <a name="create-a-report-action"></a> <h3>Create a Report Action</h3> <p>The next step, is create a record on <em>Settings -&gt; Technical-&gt; Actions -&gt; Reports</em>.</p> <img alt="static/description/screenshot_05.png" src="static/description/screenshot_05.png" style="width: 400px;" /> <p>Create a new report and <strong>Report Type</strong> fields select <strong>Jasper Report</strong>. The page <strong>Jasper Report</strong> will be visible.</p> <p>In this page, add the <strong>.jrxml</strong> template in <strong>Report Template</strong> field. Add to <strong>.jrxml</strong> of <strong>subreports</strong> if exist. In <strong>Database</strong> field, select the database that you add before.</p> <p>In <strong>Model</strong> field add the model where you report will be attached, i.e., <strong>sale.order</strong>, <strong>account.invoice</strong>, for example. The <strong>Template Name</strong> is a name/id of report.</p> <p>Finally, in right side, press the button</p> <img alt="static/description/screenshot_05.png" src="static/description/screenshot_05.png" style="width: 400px;" /> <p>to add report in print menu on record screen.</p> <a name="print-the-report"></a> <h3>Print the Report</h3> <p>Go in the page of model that you select in <strong>Model</strong> field and in the drop-down print button. You can print the report created.</p> <a name="bug-tracker"></a> <h2>Bug Tracker</h2> <p>Bugs are tracked on <a class="reference external" href="https://github.com/multidadosti-erp/multidadosti-addons/issues">GitHub Issues</a>. In case of trouble, please check there if your issue has already been reported.</p>