Author: |
KMEE, Odoo Community Association (OCA) |
License: |
LGPL-3 |
Branch: |
feature/pos_report_engine |
Repository: |
kmee/pos |
Dependencies: |
point_of_sale |
Languages: |
CSS (161, 13.3%),
HTML (391, 32.2%),
JavaScript (304, 25.1%),
Python (27, 2.2%),
XML (235, 19.4%),
and
reStructuredText (95, 7.8%) |
<h1 class="title">POS Report Engine</h1>
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/lgpl-3.0-standalone.html"><img alt="License: LGPL-3" src="https://img.shields.io/badge/licence-LGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/pos/tree/14.0/pos_report_engine"><img alt="OCA/pos" src="https://img.shields.io/badge/github-OCA%2Fpos-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/pos-14-0/pos-14-0-pos_report_engine"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/184/14.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
<p>This module implements a reporting engine for the POS front-end, aiming to facilitate the insertion of new reports, centralizing and standardizing them.</p>
<p>In this way, it is possible to add reports with specific data inputs, just by extending this module and using a simple interface.</p>
<p>To add a report, you need to:</p>
<ol class="arabic">
<li><p class="first">Use the ReportEngine object already exported by this module</p>
<p>const ReportEngine = require("pos_report_engine.ReportEngine");</p>
</li>
<li><p class="first">Register the new report by passing an object in the following format to the "addReport()" function of the "ReportEngine" object:</p>
</li>
</ol>
<blockquote>
<p>report:
{ id: string -> report id</p>
<blockquote>
<p>name: string -> Report button name</p>
<p>reportGeneratorHandle: Function -> Function responsible for generating and returning the report</p>
<p>reportInputs: list -> List of data input component objects for report generation }</p>
</blockquote>
<p>report_input_object:
{ id: string -> ID used to capture input value</p>
<blockquote>
<p>component: class -> Input component class</p>
<p>label: string -> Input field label }</p>
</blockquote>
</blockquote>
<p>See the examples folder for more details</p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
<ul class="simple">
<li><a class="reference internal" href="#usage" id="id1">Usage</a></li>
<li><a class="reference internal" href="#bug-tracker" id="id2">Bug Tracker</a></li>
<li><a class="reference internal" href="#credits" id="id3">Credits</a><ul>
<li><a class="reference internal" href="#authors" id="id4">Authors</a></li>
<li><a class="reference internal" href="#contributors" id="id5">Contributors</a></li>
<li><a class="reference internal" href="#other-credits" id="id6">Other credits</a></li>
<li><a class="reference internal" href="#maintainers" id="id7">Maintainers</a></li>
</ul>
</li>
</ul>
</div>
<a name="usage"></a>
<h2><a class="toc-backref" href="#id1">Usage</a></h2>
<p>To use this module, you need to:</p>
<p>1 Open the report screen by clicking the paper icon on the left of the top bar</p>
<blockquote>
<div class="figure">
<img alt="https://raw.githubusercontent.com/OCA/pos/14.0/pos_report_engine/static/description/open_report_screen.png" src="https://raw.githubusercontent.com/OCA/pos/14.0/pos_report_engine/static/description/open_report_screen.png" style="width: 800px;" />
</div>
</blockquote>
<p>2 Select the desired report</p>
<blockquote>
<div class="figure">
<img alt="https://raw.githubusercontent.com/OCA/pos/14.0/pos_report_engine/static/description/select_report.png" src="https://raw.githubusercontent.com/OCA/pos/14.0/pos_report_engine/static/description/select_report.png" style="width: 800px;" />
</div>
</blockquote>
<p>3 Fill in the inputs and click on the "Generate" button</p>
<blockquote>
<div class="figure">
<img alt="https://raw.githubusercontent.com/OCA/pos/14.0/pos_report_engine/static/description/input_and_generate.png" src="https://raw.githubusercontent.com/OCA/pos/14.0/pos_report_engine/static/description/input_and_generate.png" style="width: 800px;" />
</div>
</blockquote>
<p>4 The report must be generated in the space below the inputs</p>
<blockquote>
<div class="figure">
<img alt="https://raw.githubusercontent.com/OCA/pos/14.0/pos_report_engine/static/description/generated_report.png" src="https://raw.githubusercontent.com/OCA/pos/14.0/pos_report_engine/static/description/generated_report.png" style="width: 800px;" />
</div>
</blockquote>
<a name="bug-tracker"></a>
<h2><a class="toc-backref" href="#id2">Bug Tracker</a></h2>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/pos/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
<a class="reference external" href="https://github.com/OCA/pos/issues/new?body=module:%20pos_report_engine%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p>
<a name="credits"></a>
<h2><a class="toc-backref" href="#id3">Credits</a></h2>
<a name="authors"></a>
<h3><a class="toc-backref" href="#id4">Authors</a></h3>
<ul class="simple">
<li>KMEE</li>
</ul>
<a name="contributors"></a>
<h3><a class="toc-backref" href="#id5">Contributors</a></h3>
<ul class="simple">
<li>Luis Malta <<a class="reference external" href="mailto:luis.malta@kmee.com.br">luis.malta@kmee.com.br</a>></li>
</ul>
<a name="other-credits"></a>
<h3><a class="toc-backref" href="#id6">Other credits</a></h3>
<p>The development of this module has been financially supported by:</p>
<ul class="simple">
<li><a class="reference external" href="https://www.kmee.com.br">KMEE</a></li>
</ul>
<a name="maintainers"></a>
<h3><a class="toc-backref" href="#id7">Maintainers</a></h3>
<p>This module is maintained by the OCA.</p>
<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>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>This module is part of the <a class="reference external" href="https://github.com/OCA/pos/tree/14.0/pos_report_engine">OCA/pos</a> project on GitHub.</p>
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>