odoo-addon-base-report-to-printer 18.0.1.1.6__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- odoo/addons/base_report_to_printer/README.rst +205 -0
- odoo/addons/base_report_to_printer/__init__.py +9 -0
- odoo/addons/base_report_to_printer/__manifest__.py +39 -0
- odoo/addons/base_report_to_printer/data/neutralize.sql +2 -0
- odoo/addons/base_report_to_printer/data/printing_data.xml +27 -0
- odoo/addons/base_report_to_printer/i18n/am.po +936 -0
- odoo/addons/base_report_to_printer/i18n/base_report_to_printer.pot +932 -0
- odoo/addons/base_report_to_printer/i18n/bg.po +939 -0
- odoo/addons/base_report_to_printer/i18n/ca.po +936 -0
- odoo/addons/base_report_to_printer/i18n/de.po +994 -0
- odoo/addons/base_report_to_printer/i18n/el_GR.po +937 -0
- odoo/addons/base_report_to_printer/i18n/es.po +1004 -0
- odoo/addons/base_report_to_printer/i18n/es_AR.po +987 -0
- odoo/addons/base_report_to_printer/i18n/es_ES.po +937 -0
- odoo/addons/base_report_to_printer/i18n/fi.po +939 -0
- odoo/addons/base_report_to_printer/i18n/fr.po +999 -0
- odoo/addons/base_report_to_printer/i18n/gl.po +936 -0
- odoo/addons/base_report_to_printer/i18n/hr.po +966 -0
- odoo/addons/base_report_to_printer/i18n/hr_HR.po +941 -0
- odoo/addons/base_report_to_printer/i18n/it.po +985 -0
- odoo/addons/base_report_to_printer/i18n/nl.po +939 -0
- odoo/addons/base_report_to_printer/i18n/nl_NL.po +950 -0
- odoo/addons/base_report_to_printer/i18n/pt.po +936 -0
- odoo/addons/base_report_to_printer/i18n/pt_BR.po +940 -0
- odoo/addons/base_report_to_printer/i18n/pt_PT.po +937 -0
- odoo/addons/base_report_to_printer/i18n/sl.po +943 -0
- odoo/addons/base_report_to_printer/i18n/sv.po +983 -0
- odoo/addons/base_report_to_printer/i18n/tr.po +936 -0
- odoo/addons/base_report_to_printer/i18n/zh_CN.po +958 -0
- odoo/addons/base_report_to_printer/models/__init__.py +8 -0
- odoo/addons/base_report_to_printer/models/ir_actions_report.py +253 -0
- odoo/addons/base_report_to_printer/models/printing_action.py +26 -0
- odoo/addons/base_report_to_printer/models/printing_job.py +131 -0
- odoo/addons/base_report_to_printer/models/printing_printer.py +268 -0
- odoo/addons/base_report_to_printer/models/printing_report_xml_action.py +48 -0
- odoo/addons/base_report_to_printer/models/printing_server.py +275 -0
- odoo/addons/base_report_to_printer/models/printing_tray.py +21 -0
- odoo/addons/base_report_to_printer/models/res_users.py +55 -0
- odoo/addons/base_report_to_printer/readme/CONFIGURE.md +13 -0
- odoo/addons/base_report_to_printer/readme/CONTRIBUTORS.md +18 -0
- odoo/addons/base_report_to_printer/readme/CREDITS.md +1 -0
- odoo/addons/base_report_to_printer/readme/DESCRIPTION.md +27 -0
- odoo/addons/base_report_to_printer/readme/HISTORY.md +7 -0
- odoo/addons/base_report_to_printer/readme/INSTALL.md +10 -0
- odoo/addons/base_report_to_printer/readme/ROADMAP.md +3 -0
- odoo/addons/base_report_to_printer/readme/USAGE.md +15 -0
- odoo/addons/base_report_to_printer/security/ir.model.access.csv +2 -0
- odoo/addons/base_report_to_printer/security/security.xml +151 -0
- odoo/addons/base_report_to_printer/static/description/icon.png +0 -0
- odoo/addons/base_report_to_printer/static/description/index.html +561 -0
- odoo/addons/base_report_to_printer/static/src/js/qweb_action_manager.esm.js +92 -0
- odoo/addons/base_report_to_printer/tests/__init__.py +13 -0
- odoo/addons/base_report_to_printer/tests/test_ir_actions_report.py +350 -0
- odoo/addons/base_report_to_printer/tests/test_printing_job.py +70 -0
- odoo/addons/base_report_to_printer/tests/test_printing_printer.py +198 -0
- odoo/addons/base_report_to_printer/tests/test_printing_printer_tray.py +256 -0
- odoo/addons/base_report_to_printer/tests/test_printing_printer_wizard.py +94 -0
- odoo/addons/base_report_to_printer/tests/test_printing_report_xml_action.py +98 -0
- odoo/addons/base_report_to_printer/tests/test_printing_server.py +219 -0
- odoo/addons/base_report_to_printer/tests/test_printing_tray.py +49 -0
- odoo/addons/base_report_to_printer/tests/test_report.py +226 -0
- odoo/addons/base_report_to_printer/tests/test_res_users.py +53 -0
- odoo/addons/base_report_to_printer/views/ir_actions_report.xml +21 -0
- odoo/addons/base_report_to_printer/views/printing_job.xml +46 -0
- odoo/addons/base_report_to_printer/views/printing_printer.xml +147 -0
- odoo/addons/base_report_to_printer/views/printing_report.xml +39 -0
- odoo/addons/base_report_to_printer/views/printing_server.xml +79 -0
- odoo/addons/base_report_to_printer/views/res_users.xml +33 -0
- odoo/addons/base_report_to_printer/wizards/__init__.py +2 -0
- odoo/addons/base_report_to_printer/wizards/print_attachment_report.py +80 -0
- odoo/addons/base_report_to_printer/wizards/print_attachment_report.xml +56 -0
- odoo/addons/base_report_to_printer/wizards/printing_printer_update_wizard.py +27 -0
- odoo/addons/base_report_to_printer/wizards/printing_printer_update_wizard_view.xml +37 -0
- odoo_addon_base_report_to_printer-18.0.1.1.6.dist-info/METADATA +222 -0
- odoo_addon_base_report_to_printer-18.0.1.1.6.dist-info/RECORD +77 -0
- odoo_addon_base_report_to_printer-18.0.1.1.6.dist-info/WHEEL +5 -0
- odoo_addon_base_report_to_printer-18.0.1.1.6.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
.. image:: https://odoo-community.org/readme-banner-image
|
|
2
|
+
:target: https://odoo-community.org/get-involved?utm_source=readme
|
|
3
|
+
:alt: Odoo Community Association
|
|
4
|
+
|
|
5
|
+
=================
|
|
6
|
+
Report to printer
|
|
7
|
+
=================
|
|
8
|
+
|
|
9
|
+
..
|
|
10
|
+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
11
|
+
!! This file is generated by oca-gen-addon-readme !!
|
|
12
|
+
!! changes will be overwritten. !!
|
|
13
|
+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
14
|
+
!! source digest: sha256:ef1f57f3e22ab9d930c27fab82b161d0a1b27cf559525979ccc8300cca95fcc5
|
|
15
|
+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
16
|
+
|
|
17
|
+
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
|
|
18
|
+
:target: https://odoo-community.org/page/development-status
|
|
19
|
+
:alt: Beta
|
|
20
|
+
.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
|
|
21
|
+
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
|
|
22
|
+
:alt: License: AGPL-3
|
|
23
|
+
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Freport--print--send-lightgray.png?logo=github
|
|
24
|
+
:target: https://github.com/OCA/report-print-send/tree/18.0/base_report_to_printer
|
|
25
|
+
:alt: OCA/report-print-send
|
|
26
|
+
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
|
|
27
|
+
:target: https://translation.odoo-community.org/projects/report-print-send-18-0/report-print-send-18-0-base_report_to_printer
|
|
28
|
+
:alt: Translate me on Weblate
|
|
29
|
+
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
|
|
30
|
+
:target: https://runboat.odoo-community.org/builds?repo=OCA/report-print-send&target_branch=18.0
|
|
31
|
+
:alt: Try me on Runboat
|
|
32
|
+
|
|
33
|
+
|badge1| |badge2| |badge3| |badge4| |badge5|
|
|
34
|
+
|
|
35
|
+
This module allows users to send reports to a printer attached to the
|
|
36
|
+
server.
|
|
37
|
+
|
|
38
|
+
It adds an optional behaviour on reports to send it directly to a
|
|
39
|
+
printer.
|
|
40
|
+
|
|
41
|
+
- Send to Client is the default behaviour providing you a downloadable
|
|
42
|
+
PDF
|
|
43
|
+
- Send to Printer prints the report on selected printer
|
|
44
|
+
|
|
45
|
+
It detects trays on printers installation plus permits to select the
|
|
46
|
+
paper source on which you want to print directly.
|
|
47
|
+
|
|
48
|
+
Report behaviour is defined by settings.
|
|
49
|
+
|
|
50
|
+
You will find this option on default user config, on default report
|
|
51
|
+
config and on specific config per user per report.
|
|
52
|
+
|
|
53
|
+
This allows you to dedicate a specific paper source for example for
|
|
54
|
+
preprinted paper such as payment slip.
|
|
55
|
+
|
|
56
|
+
Settings can be configured:
|
|
57
|
+
|
|
58
|
+
- globally
|
|
59
|
+
- per user
|
|
60
|
+
- per report
|
|
61
|
+
- per user and report
|
|
62
|
+
|
|
63
|
+
**Table of contents**
|
|
64
|
+
|
|
65
|
+
.. contents::
|
|
66
|
+
:local:
|
|
67
|
+
|
|
68
|
+
Installation
|
|
69
|
+
============
|
|
70
|
+
|
|
71
|
+
To install this module, you need to:
|
|
72
|
+
|
|
73
|
+
1. Install PyCups - https://pypi.python.org/pypi/pycups
|
|
74
|
+
|
|
75
|
+
.. code:: bash
|
|
76
|
+
|
|
77
|
+
sudo apt-get install cups
|
|
78
|
+
sudo apt-get install libcups2-dev
|
|
79
|
+
sudo apt-get install python3-dev
|
|
80
|
+
sudo pip install pycups
|
|
81
|
+
|
|
82
|
+
Configuration
|
|
83
|
+
=============
|
|
84
|
+
|
|
85
|
+
To configure this module, you need to:
|
|
86
|
+
|
|
87
|
+
1. Enable the "Printing / Print User" option under access rights to give
|
|
88
|
+
users the ability to view the print menu.
|
|
89
|
+
|
|
90
|
+
The jobs will be sent to the printer with a name matching the
|
|
91
|
+
print_report_name of the report (truncated at 80 characters). By default
|
|
92
|
+
this will not be displayed by CUPS web interface or in Odoo. To see this
|
|
93
|
+
information, you need to change the configuration of your CUPS server
|
|
94
|
+
and set the JobPrivateValue directive to "none" (or some other list of
|
|
95
|
+
values which does not include "job-name") , and reload the server. See
|
|
96
|
+
cupsd.conf(5)
|
|
97
|
+
<`https://www.cups.org/doc/man-cupsd.conf.html\\> <https://www.cups.org/doc/man-cupsd.conf.html\>>`__
|
|
98
|
+
for details.
|
|
99
|
+
|
|
100
|
+
Usage
|
|
101
|
+
=====
|
|
102
|
+
|
|
103
|
+
Guidelines for use:
|
|
104
|
+
|
|
105
|
+
- To update the CUPS printers in *Settings > Printing > Update
|
|
106
|
+
Printers from CUPS*
|
|
107
|
+
- To print a report on a specific printer or tray, you can change
|
|
108
|
+
these in *Settings > Printing > Reports* to define default
|
|
109
|
+
behaviour.
|
|
110
|
+
- To print a report on a specific printer and/or tray for a user, you
|
|
111
|
+
can change these in *Settings > Printing > Reports* in *Specific
|
|
112
|
+
actions per user*
|
|
113
|
+
- Users may also select a default action, printer or tray in their
|
|
114
|
+
preferences.
|
|
115
|
+
|
|
116
|
+
When no tray is configured for a report and a user, the default tray
|
|
117
|
+
setup on the CUPS server is used.
|
|
118
|
+
|
|
119
|
+
Known issues / Roadmap
|
|
120
|
+
======================
|
|
121
|
+
|
|
122
|
+
- With threaded printing there's no download fallback when the issue
|
|
123
|
+
isn't detected by the CUPS Odoo backend. To able to do it, we would
|
|
124
|
+
need to notify the bus or use web_notify for it.
|
|
125
|
+
|
|
126
|
+
Changelog
|
|
127
|
+
=========
|
|
128
|
+
|
|
129
|
+
13.0.1.0.0 (2019-09-30)
|
|
130
|
+
-----------------------
|
|
131
|
+
|
|
132
|
+
- [RELEASE] Port from V12.
|
|
133
|
+
|
|
134
|
+
12.0.1.0.0 (2018-02-04)
|
|
135
|
+
-----------------------
|
|
136
|
+
|
|
137
|
+
- [RELEASE] Port from V11.
|
|
138
|
+
|
|
139
|
+
Bug Tracker
|
|
140
|
+
===========
|
|
141
|
+
|
|
142
|
+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/report-print-send/issues>`_.
|
|
143
|
+
In case of trouble, please check there if your issue has already been reported.
|
|
144
|
+
If you spotted it first, help us to smash it by providing a detailed and welcomed
|
|
145
|
+
`feedback <https://github.com/OCA/report-print-send/issues/new?body=module:%20base_report_to_printer%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
|
|
146
|
+
|
|
147
|
+
Do not contact contributors directly about support or help with technical issues.
|
|
148
|
+
|
|
149
|
+
Credits
|
|
150
|
+
=======
|
|
151
|
+
|
|
152
|
+
Authors
|
|
153
|
+
-------
|
|
154
|
+
|
|
155
|
+
* Agile Business Group & Domsense
|
|
156
|
+
* Pegueroles SCP
|
|
157
|
+
* NaN
|
|
158
|
+
* LasLabs
|
|
159
|
+
* Camptocamp
|
|
160
|
+
* Open for Small Business Ltd
|
|
161
|
+
|
|
162
|
+
Contributors
|
|
163
|
+
------------
|
|
164
|
+
|
|
165
|
+
- Ferran Pegueroles <ferran@pegueroles.com>
|
|
166
|
+
- Albert Cervera i Areny <albert@nan-tic.com>
|
|
167
|
+
- Davide Corio <davide.corio@agilebg.com>
|
|
168
|
+
- Lorenzo Battistini <lorenzo.battistini@agilebg.com>
|
|
169
|
+
- Yannick Vaucher <yannick.vaucher@camptocamp.com>
|
|
170
|
+
- Lionel Sausin <ls@numerigraphe.com>
|
|
171
|
+
- Guewen Baconnier <guewen.baconnier@camptocamp.com>
|
|
172
|
+
- Dave Lasley <dave@laslabs.com>
|
|
173
|
+
- Sylvain Garancher <sylvain.garancher@syleam.fr>
|
|
174
|
+
- Jairo Llopis <jairo.llopis@tecnativa.com>
|
|
175
|
+
- Graeme Gellatly <graeme@o4sb.com>
|
|
176
|
+
- Rod Schouteden <rod@schout-it.be>
|
|
177
|
+
- Alexandre Fayolle <alexandre.fayolle@camptocamp.com>
|
|
178
|
+
- Matias Peralta <mnp@adhoc.com.ar>
|
|
179
|
+
- Hughes Damry <hughes.damry@acsone.eu>
|
|
180
|
+
- Akim Juillerat <akim.juillerat@camptocamp.com>
|
|
181
|
+
- Jacques-Etienne Baudoux (BCIM) <je@bcim.be>
|
|
182
|
+
- Tris Doan <tridm@trobz.com>
|
|
183
|
+
|
|
184
|
+
Other credits
|
|
185
|
+
-------------
|
|
186
|
+
|
|
187
|
+
The migration of this module from 17.0 to 18.0 was financially supported
|
|
188
|
+
by Camptocamp.
|
|
189
|
+
|
|
190
|
+
Maintainers
|
|
191
|
+
-----------
|
|
192
|
+
|
|
193
|
+
This module is maintained by the OCA.
|
|
194
|
+
|
|
195
|
+
.. image:: https://odoo-community.org/logo.png
|
|
196
|
+
:alt: Odoo Community Association
|
|
197
|
+
:target: https://odoo-community.org
|
|
198
|
+
|
|
199
|
+
OCA, or the Odoo Community Association, is a nonprofit organization whose
|
|
200
|
+
mission is to support the collaborative development of Odoo features and
|
|
201
|
+
promote its widespread use.
|
|
202
|
+
|
|
203
|
+
This module is part of the `OCA/report-print-send <https://github.com/OCA/report-print-send/tree/18.0/base_report_to_printer>`_ project on GitHub.
|
|
204
|
+
|
|
205
|
+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Copyright (c) 2007 Ferran Pegueroles <ferran@pegueroles.com>
|
|
2
|
+
# Copyright (c) 2009 Albert Cervera i Areny <albert@nan-tic.com>
|
|
3
|
+
# Copyright (C) 2011 Agile Business Group sagl (<http://www.agilebg.com>)
|
|
4
|
+
# Copyright (C) 2011 Domsense srl (<http://www.domsense.com>)
|
|
5
|
+
# Copyright (C) 2013-2014 Camptocamp (<http://www.camptocamp.com>)
|
|
6
|
+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
|
7
|
+
|
|
8
|
+
from . import models
|
|
9
|
+
from . import wizards
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# Copyright (c) 2007 Ferran Pegueroles <ferran@pegueroles.com>
|
|
2
|
+
# Copyright (c) 2009 Albert Cervera i Areny <albert@nan-tic.com>
|
|
3
|
+
# Copyright (C) 2011 Agile Business Group sagl (<http://www.agilebg.com>)
|
|
4
|
+
# Copyright (C) 2011 Domsense srl (<http://www.domsense.com>)
|
|
5
|
+
# Copyright (C) 2013-2014 Camptocamp (<http://www.camptocamp.com>)
|
|
6
|
+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
|
7
|
+
|
|
8
|
+
{
|
|
9
|
+
"name": "Report to printer",
|
|
10
|
+
"version": "18.0.1.1.6",
|
|
11
|
+
"category": "Generic Modules/Base",
|
|
12
|
+
"author": "Agile Business Group & Domsense, Pegueroles SCP, NaN,"
|
|
13
|
+
" LasLabs, Camptocamp, Odoo Community Association (OCA),"
|
|
14
|
+
" Open for Small Business Ltd",
|
|
15
|
+
"website": "https://github.com/OCA/report-print-send",
|
|
16
|
+
"license": "AGPL-3",
|
|
17
|
+
"depends": ["web"],
|
|
18
|
+
"data": [
|
|
19
|
+
"data/printing_data.xml",
|
|
20
|
+
"security/security.xml",
|
|
21
|
+
"security/ir.model.access.csv",
|
|
22
|
+
"views/printing_printer.xml",
|
|
23
|
+
"views/printing_server.xml",
|
|
24
|
+
"views/printing_job.xml",
|
|
25
|
+
"views/printing_report.xml",
|
|
26
|
+
"views/res_users.xml",
|
|
27
|
+
"views/ir_actions_report.xml",
|
|
28
|
+
"wizards/print_attachment_report.xml",
|
|
29
|
+
"wizards/printing_printer_update_wizard_view.xml",
|
|
30
|
+
],
|
|
31
|
+
"assets": {
|
|
32
|
+
"web.assets_backend": [
|
|
33
|
+
"/base_report_to_printer/static/src/js/qweb_action_manager.esm.js",
|
|
34
|
+
],
|
|
35
|
+
},
|
|
36
|
+
"installable": True,
|
|
37
|
+
"application": False,
|
|
38
|
+
"external_dependencies": {"python": ["pycups"]},
|
|
39
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<?xml version="1.0" ?>
|
|
2
|
+
<odoo noupdate="1">
|
|
3
|
+
<!-- printing.action -->
|
|
4
|
+
<record model="printing.action" id="printing_action_1">
|
|
5
|
+
<field name="name">Send to Printer</field>
|
|
6
|
+
<field name="action_type">server</field>
|
|
7
|
+
</record>
|
|
8
|
+
<record model="printing.action" id="printing_action_2">
|
|
9
|
+
<field name="name">Send to Client</field>
|
|
10
|
+
<field name="action_type">client</field>
|
|
11
|
+
</record>
|
|
12
|
+
<record forcecreate="True" id="ir_cron_update_printers" model="ir.cron">
|
|
13
|
+
<field name="name">Update Printers Jobs</field>
|
|
14
|
+
<field name="active" eval="True" />
|
|
15
|
+
<field name="user_id" ref="base.user_root" />
|
|
16
|
+
<field name="interval_number">1</field>
|
|
17
|
+
<field name="interval_type">minutes</field>
|
|
18
|
+
<field name="model_id" ref="base_report_to_printer.model_printing_server" />
|
|
19
|
+
<field name="state">code</field>
|
|
20
|
+
<field name="code">model.action_update_jobs()</field>
|
|
21
|
+
</record>
|
|
22
|
+
<function
|
|
23
|
+
model="ir.default"
|
|
24
|
+
name="set"
|
|
25
|
+
eval="('ir.actions.report', 'property_printing_action_id', obj().env.ref('base_report_to_printer.printing_action_2').id)"
|
|
26
|
+
/>
|
|
27
|
+
</odoo>
|