[UPD] README.rst

This commit is contained in:
OCA-git-bot
2023-03-18 18:00:06 +00:00
parent 531565de3a
commit 8788fc1f5d
2 changed files with 81 additions and 37 deletions

View File

@@ -14,13 +14,13 @@ Report Labels
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Freporting--engine-lightgray.png?logo=github
:target: https://github.com/OCA/reporting-engine/tree/14.0/report_label
:target: https://github.com/OCA/reporting-engine/tree/16.0/report_label
:alt: OCA/reporting-engine
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/reporting-engine-14-0/reporting-engine-14-0-report_label
:target: https://translation.odoo-community.org/projects/reporting-engine-16-0/reporting-engine-16-0-report_label
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/143/14.0
:target: https://runbot.odoo-community.org/runbot/143/16.0
:alt: Try me on Runbot
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -35,39 +35,64 @@ This module allows you to create self-adhesive label printing actions on any mod
Configuration
=============
Go to **Settings > Technical > Analysis > Label Paper Format** and create
your self-adhesive label paper formats.
**Configure your Report Label Paperformat**
.. image:: https://raw.githubusercontent.com/OCA/reporting-engine/14.0/report_label/static/description/configure_paperformat.png
* Go to "Settings > Technical > Reporting > Label Paper Format"
Go to **Settings > Technical > Analysis > Label Report** and create your label
report, and its context action. You'll also need to create or reuse a
QWeb template for you label.
* Create your self-adhesive label paper formats.
.. image:: https://raw.githubusercontent.com/OCA/reporting-engine/14.0/report_label/static/description/configure_report_label.png
You should reuse or create a Paperformat.
.. image:: https://raw.githubusercontent.com/OCA/reporting-engine/16.0/report_label/static/description/report_paperformat_label_form.png
**Configure your Server action**
* Go to "Settings > Technical > Actions > Server Actions"
Create your label report :
* In the 'Action to do' field, select 'Print Self-adhesive Labels'
* In the 'Label Paper Format' field, select your label paper format previously created
* In the 'Label Qweb Template' create or reuse a QWeb template for your label.
.. image:: https://raw.githubusercontent.com/OCA/reporting-engine/16.0/report_label/static/description/ir_actions_server.png
**Importante Note**
`By design <https://github.com/OCA/reporting-engine/blob/14.0/report_label/reports/report_label.xml#L34>`_, the variable used in this QWeb template must be named `record`.
Usage
=====
1. In the target model's tree view, select the records to print.
2. Click *Action* and your label report action name.
3. Select the number of labels per record to print, and click Print.
* In the target model's tree view, select the records to print.
* Click *Action* and your label report action name.
* Select the number of labels per record to print, and click Print.
.. image:: https://raw.githubusercontent.com/OCA/reporting-engine/14.0/report_label/static/description/label_wizard.png
you can optionaly define an offset
.. image:: https://raw.githubusercontent.com/OCA/reporting-engine/16.0/report_label/static/description/report_label_wizard_form.png
The items will be printed in a pdf document.
.. image:: https://raw.githubusercontent.com/OCA/reporting-engine/16.0/report_label/static/description/report_result.png
Known issues / Roadmap
======================
Known issues:
* `wkhtmltopdf` doesn't always respect dpi, and mm measures don't match. For
this matter, it's recommended to use this module along with
`report_wkhtmltopdf_param` and enable `--disable-smart-shrinking`.
* This module depends on `base_automation` only because this module extends
`ir.actions.server` with a new kind of action, and `base.automation` inherits
from `ir.actions.server` by delegation in such a way that the modules cannot
be loaded in another order.
To do when migrating in version > 16 :
1. remove ``base_automation`` dependency
2. install ``report_label``
3. install then ``base_automation``.
If the installation of ``base_automation`` works, the dependency can be
replaced by ``base``.
Bug Tracker
===========
@@ -75,7 +100,7 @@ Bug Tracker
Bugs are tracked on `GitHub Issues <https://github.com/OCA/reporting-engine/issues>`_.
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 <https://github.com/OCA/reporting-engine/issues/new?body=module:%20report_label%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
`feedback <https://github.com/OCA/reporting-engine/issues/new?body=module:%20report_label%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
Do not contact contributors directly about support or help with technical issues.
@@ -120,6 +145,6 @@ Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
|maintainer-ivantodorovich|
This module is part of the `OCA/reporting-engine <https://github.com/OCA/reporting-engine/tree/14.0/report_label>`_ project on GitHub.
This module is part of the `OCA/reporting-engine <https://github.com/OCA/reporting-engine/tree/16.0/report_label>`_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

View File

@@ -367,7 +367,7 @@ ul.auto-toc {
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<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/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/reporting-engine/tree/14.0/report_label"><img alt="OCA/reporting-engine" src="https://img.shields.io/badge/github-OCA%2Freporting--engine-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/reporting-engine-14-0/reporting-engine-14-0-report_label"><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/143/14.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
<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/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/reporting-engine/tree/16.0/report_label"><img alt="OCA/reporting-engine" src="https://img.shields.io/badge/github-OCA%2Freporting--engine-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/reporting-engine-16-0/reporting-engine-16-0-report_label"><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/143/16.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
<p>This module allows you to create self-adhesive label printing actions on any model.</p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
@@ -386,34 +386,53 @@ ul.auto-toc {
</div>
<div class="section" id="configuration">
<h1><a class="toc-backref" href="#id1">Configuration</a></h1>
<p>Go to <strong>Settings &gt; Technical &gt; Analysis &gt; Label Paper Format</strong> and create
your self-adhesive label paper formats.</p>
<img alt="https://raw.githubusercontent.com/OCA/reporting-engine/14.0/report_label/static/description/configure_paperformat.png" src="https://raw.githubusercontent.com/OCA/reporting-engine/14.0/report_label/static/description/configure_paperformat.png" />
<p>Go to <strong>Settings &gt; Technical &gt; Analysis &gt; Label Report</strong> and create your label
report, and its context action. Youll also need to create or reuse a
QWeb template for you label.</p>
<img alt="https://raw.githubusercontent.com/OCA/reporting-engine/14.0/report_label/static/description/configure_report_label.png" src="https://raw.githubusercontent.com/OCA/reporting-engine/14.0/report_label/static/description/configure_report_label.png" />
<p><strong>Configure your Report Label Paperformat</strong></p>
<ul class="simple">
<li>Go to “Settings &gt; Technical &gt; Reporting &gt; Label Paper Format</li>
<li>Create your self-adhesive label paper formats.</li>
</ul>
<p>You should reuse or create a Paperformat.</p>
<img alt="https://raw.githubusercontent.com/OCA/reporting-engine/16.0/report_label/static/description/report_paperformat_label_form.png" src="https://raw.githubusercontent.com/OCA/reporting-engine/16.0/report_label/static/description/report_paperformat_label_form.png" />
<p><strong>Configure your Server action</strong></p>
<ul class="simple">
<li>Go to “Settings &gt; Technical &gt; Actions &gt; Server Actions”</li>
</ul>
<p>Create your label report :</p>
<ul class="simple">
<li>In the Action to do field, select Print Self-adhesive Labels</li>
<li>In the Label Paper Format field, select your label paper format previously created</li>
<li>In the Label Qweb Template create or reuse a QWeb template for your label.</li>
</ul>
<img alt="https://raw.githubusercontent.com/OCA/reporting-engine/16.0/report_label/static/description/ir_actions_server.png" src="https://raw.githubusercontent.com/OCA/reporting-engine/16.0/report_label/static/description/ir_actions_server.png" />
<p><strong>Importante Note</strong></p>
<p><a class="reference external" href="https://github.com/OCA/reporting-engine/blob/14.0/report_label/reports/report_label.xml#L34">By design</a>, the variable used in this QWeb template must be named <cite>record</cite>.</p>
</div>
<div class="section" id="usage">
<h1><a class="toc-backref" href="#id2">Usage</a></h1>
<ol class="arabic simple">
<ul class="simple">
<li>In the target models tree view, select the records to print.</li>
<li>Click <em>Action</em> and your label report action name.</li>
<li>Select the number of labels per record to print, and click Print.</li>
</ol>
<img alt="https://raw.githubusercontent.com/OCA/reporting-engine/14.0/report_label/static/description/label_wizard.png" src="https://raw.githubusercontent.com/OCA/reporting-engine/14.0/report_label/static/description/label_wizard.png" />
</ul>
<p>you can optionaly define an offset</p>
<img alt="https://raw.githubusercontent.com/OCA/reporting-engine/16.0/report_label/static/description/report_label_wizard_form.png" src="https://raw.githubusercontent.com/OCA/reporting-engine/16.0/report_label/static/description/report_label_wizard_form.png" />
<p>The items will be printed in a pdf document.</p>
<img alt="https://raw.githubusercontent.com/OCA/reporting-engine/16.0/report_label/static/description/report_result.png" src="https://raw.githubusercontent.com/OCA/reporting-engine/16.0/report_label/static/description/report_result.png" />
</div>
<div class="section" id="known-issues-roadmap">
<h1><a class="toc-backref" href="#id3">Known issues / Roadmap</a></h1>
<p>Known issues:</p>
<ul class="simple">
<li><cite>wkhtmltopdf</cite> doesnt always respect dpi, and mm measures dont match. For
this matter, its recommended to use this module along with
<cite>report_wkhtmltopdf_param</cite> and enable <cite>disable-smart-shrinking</cite>.</li>
<li>This module depends on <cite>base_automation</cite> only because this module extends
<cite>ir.actions.server</cite> with a new kind of action, and <cite>base.automation</cite> inherits
from <cite>ir.actions.server</cite> by delegation in such a way that the modules cannot
be loaded in another order.</li>
be loaded in another order.
To do when migrating in version &gt; 16 :
1. remove <tt class="docutils literal">base_automation</tt> dependency
2. install <tt class="docutils literal">report_label</tt>
3. install then <tt class="docutils literal">base_automation</tt>.
If the installation of <tt class="docutils literal">base_automation</tt> works, the dependency can be
replaced by <tt class="docutils literal">base</tt>.</li>
</ul>
</div>
<div class="section" id="bug-tracker">
@@ -421,7 +440,7 @@ be loaded in another order.</li>
<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
<a class="reference external" href="https://github.com/OCA/reporting-engine/issues/new?body=module:%20report_label%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<a class="reference external" href="https://github.com/OCA/reporting-engine/issues/new?body=module:%20report_label%0Aversion:%2016.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>
</div>
<div class="section" id="credits">
@@ -460,7 +479,7 @@ mission is to support the collaborative development of Odoo features and
promote its widespread use.</p>
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p>
<p><a class="reference external" href="https://github.com/ivantodorovich"><img alt="ivantodorovich" src="https://github.com/ivantodorovich.png?size=40px" /></a></p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/reporting-engine/tree/14.0/report_label">OCA/reporting-engine</a> project on GitHub.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/reporting-engine/tree/16.0/report_label">OCA/reporting-engine</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>
</div>
</div>