Skip to content

Commit 9175a43

Browse files
committed
Merge PR OCA#923 into 16.0
Signed-off-by HviorForgeFlow
2 parents ccffc13 + 9cfb437 commit 9175a43

File tree

14 files changed

+1158
-0
lines changed

14 files changed

+1158
-0
lines changed

report_qweb_pdf_cover/README.rst

+102
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
=====================
2+
Report QWeb PDF Cover
3+
=====================
4+
5+
..
6+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7+
!! This file is generated by oca-gen-addon-readme !!
8+
!! changes will be overwritten. !!
9+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10+
!! source digest: sha256:1287ee62d703ed048f33bb706f289cf01e5c99bead22b8b612d69e88071a4d67
11+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12+
13+
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
14+
:target: https://odoo-community.org/page/development-status
15+
:alt: Beta
16+
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
17+
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
18+
:alt: License: AGPL-3
19+
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Freporting--engine-lightgray.png?logo=github
20+
:target: https://github.com/OCA/reporting-engine/tree/16.0/report_qweb_pdf_cover
21+
:alt: OCA/reporting-engine
22+
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23+
:target: https://translation.odoo-community.org/projects/reporting-engine-16-0/reporting-engine-16-0-report_qweb_pdf_cover
24+
:alt: Translate me on Weblate
25+
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/reporting-engine&target_branch=16.0
27+
:alt: Try me on Runboat
28+
29+
|badge1| |badge2| |badge3| |badge4| |badge5|
30+
31+
This module allows for front and back covers to be added to the generated PDF
32+
reports. They can be added as a separate page, at the beginning or the end of
33+
the report, but they can also overlap the first and last page of the actual
34+
report, respectively.
35+
36+
37+
**Table of contents**
38+
39+
.. contents::
40+
:local:
41+
42+
Usage
43+
=====
44+
45+
To add a cover to a report, you need to access to the report's configuration,
46+
more specifically to the `Advanced Properties` tab. There, you will find two
47+
checkboxes, one for the front cover and another for the back cover.
48+
They both work the same, so let's focus on the front cover with an example.
49+
50+
* You must check the `Use Front Cover` checkbox to enable the front cover. You
51+
will see that a new checkbox and a PDF file widget appear.
52+
53+
* If you want the front cover to overlap with the first page of the PDF report,
54+
you should also check the `Overlap Front Cover` checkbox. Leave it unchecked
55+
if you don't want the front cover to overlap with the first page.
56+
57+
* The last step would be to upload the PDF file that will be used as the front
58+
cover. You can do this by clicking on the PDF file widget and selecting the
59+
file.
60+
61+
* Important! The file must be a PDF file, and it should have only one page. If
62+
it has more pages, only the first one will be used.
63+
64+
Bug Tracker
65+
===========
66+
67+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/reporting-engine/issues>`_.
68+
In case of trouble, please check there if your issue has already been reported.
69+
If you spotted it first, help us to smash it by providing a detailed and welcomed
70+
`feedback <https://github.com/OCA/reporting-engine/issues/new?body=module:%20report_qweb_pdf_cover%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
71+
72+
Do not contact contributors directly about support or help with technical issues.
73+
74+
Credits
75+
=======
76+
77+
Authors
78+
~~~~~~~
79+
80+
* ForgeFlow
81+
82+
Contributors
83+
~~~~~~~~~~~~
84+
85+
* Laura Cazorla <[email protected]>
86+
87+
Maintainers
88+
~~~~~~~~~~~
89+
90+
This module is maintained by the OCA.
91+
92+
.. image:: https://odoo-community.org/logo.png
93+
:alt: Odoo Community Association
94+
:target: https://odoo-community.org
95+
96+
OCA, or the Odoo Community Association, is a nonprofit organization whose
97+
mission is to support the collaborative development of Odoo features and
98+
promote its widespread use.
99+
100+
This module is part of the `OCA/reporting-engine <https://github.com/OCA/reporting-engine/tree/16.0/report_qweb_pdf_cover>`_ project on GitHub.
101+
102+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

report_qweb_pdf_cover/__init__.py

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Copyright 2024 ForgeFlow S.L. (https://www.forgeflow.com)
2+
# Part of ForgeFlow. See LICENSE file for full copyright and licensing details.
3+
4+
from . import models

report_qweb_pdf_cover/__manifest__.py

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Copyright 2024 ForgeFlow S.L. (https://www.forgeflow.com)
2+
# Part of ForgeFlow. See LICENSE file for full copyright and licensing details.
3+
4+
{
5+
"name": "Report QWeb PDF Cover",
6+
"summary": "Add front and back covers to your QWeb PDF reports",
7+
"author": "ForgeFlow, Odoo Community Association (OCA)",
8+
"website": "https://github.com/OCA/reporting-engine",
9+
"category": "Reporting",
10+
"version": "16.0.1.0.0",
11+
"license": "AGPL-3",
12+
"depends": ["web"],
13+
"data": ["views/ir_actions_views.xml"],
14+
"installable": True,
15+
"application": False,
16+
}

report_qweb_pdf_cover/i18n/es.po

+157
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,157 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * report_qweb_pdf_cover
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 16.0+e\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"POT-Creation-Date: 2024-08-27 08:09+0000\n"
10+
"PO-Revision-Date: 2024-08-27 08:09+0000\n"
11+
"Last-Translator: \n"
12+
"Language-Team: \n"
13+
"MIME-Version: 1.0\n"
14+
"Content-Type: text/plain; charset=UTF-8\n"
15+
"Content-Transfer-Encoding: \n"
16+
"Plural-Forms: \n"
17+
18+
#. module: report_qweb_pdf_cover
19+
#: model:ir.model.fields,field_description:report_qweb_pdf_cover.field_ir_actions_report__back_cover_pdf
20+
msgid "Back Cover PDF"
21+
msgstr "Contraportada PDF"
22+
23+
#. module: report_qweb_pdf_cover
24+
#. odoo-python
25+
#: code:addons/report_qweb_pdf_cover/models/ir_actions_report.py:0
26+
#, python-format
27+
msgid "Failed to load back cover: %s"
28+
msgstr "Error al cargar la contraportada: %s"
29+
30+
#. module: report_qweb_pdf_cover
31+
#. odoo-python
32+
#: code:addons/report_qweb_pdf_cover/models/ir_actions_report.py:0
33+
#, python-format
34+
msgid "Failed to load front cover: %s"
35+
msgstr "Error al cargar la portada: %s"
36+
37+
#. module: report_qweb_pdf_cover
38+
#: model:ir.model.fields,field_description:report_qweb_pdf_cover.field_ir_actions_report__front_cover_pdf
39+
msgid "Front Cover PDF"
40+
msgstr "Portada PDF"
41+
42+
#. module: report_qweb_pdf_cover
43+
#. odoo-python
44+
#: code:addons/report_qweb_pdf_cover/models/ir_actions_report.py:0
45+
#, python-format
46+
msgid "No usable back cover found."
47+
msgstr "No se encontró ninguna contraportada usable."
48+
49+
#. module: report_qweb_pdf_cover
50+
#. odoo-python
51+
#: code:addons/report_qweb_pdf_cover/models/ir_actions_report.py:0
52+
#, python-format
53+
msgid "No usable front cover found."
54+
msgstr "No se encontró ninguna portada usable."
55+
56+
#. module: report_qweb_pdf_cover
57+
#: model:ir.model.fields,field_description:report_qweb_pdf_cover.field_ir_actions_report__back_cover_overlap
58+
msgid "Overlap Back Cover"
59+
msgstr "Superponer Contraportada"
60+
61+
#. module: report_qweb_pdf_cover
62+
#: model:ir.model.fields,field_description:report_qweb_pdf_cover.field_ir_actions_report__front_cover_overlap
63+
msgid "Overlap Front Cover"
64+
msgstr "Superponer Portada"
65+
66+
#. module: report_qweb_pdf_cover
67+
#: model:ir.model,name:report_qweb_pdf_cover.model_ir_actions_report
68+
msgid "Report Action"
69+
msgstr "Acción de Informe"
70+
71+
#. module: report_qweb_pdf_cover
72+
#: model:ir.model.fields,help:report_qweb_pdf_cover.field_ir_actions_report__back_cover_pdf
73+
msgid "Upload an PDF file to use as a back cover on this report."
74+
msgstr "Suba un archivo PDF para usar como contraportada en este informe."
75+
76+
#. module: report_qweb_pdf_cover
77+
#: model:ir.model.fields,help:report_qweb_pdf_cover.field_ir_actions_report__front_cover_pdf
78+
msgid "Upload an PDF file to use as a front cover on this report."
79+
msgstr "Suba un archivo PDF para usar como portada en este informe."
80+
81+
#. module: report_qweb_pdf_cover
82+
#: model:ir.model.fields,field_description:report_qweb_pdf_cover.field_ir_actions_report__use_back_cover
83+
msgid "Use Back Cover"
84+
msgstr "Usar Contraportada"
85+
86+
#. module: report_qweb_pdf_cover
87+
#: model:ir.model.fields,field_description:report_qweb_pdf_cover.field_ir_actions_report__use_front_cover
88+
msgid "Use Front Cover"
89+
msgstr "Usar Portada"
90+
91+
#. module: report_qweb_pdf_cover
92+
#: model:ir.model.fields,help:report_qweb_pdf_cover.field_ir_actions_report__use_back_cover
93+
msgid "Use a back cover when rendering the PDF report."
94+
msgstr "Usar una contraportada al renderizar el informe PDF."
95+
96+
#. module: report_qweb_pdf_cover
97+
#: model:ir.model.fields,help:report_qweb_pdf_cover.field_ir_actions_report__use_front_cover
98+
msgid "Use a front cover when rendering the PDF report."
99+
msgstr "Usar una portada al renderizar el informe PDF."
100+
101+
#. module: report_qweb_pdf_cover
102+
#: model:ir.model.fields,help:report_qweb_pdf_cover.field_ir_actions_report__back_cover_overlap
103+
msgid ""
104+
"When set, the back cover of the report will overlap with the contents of the"
105+
" last page of the report. This is useful to include some information of the"
106+
" report in the back cover."
107+
msgstr ""
108+
"Cuando se establece, la contraportada del informe se superpondrá con el "
109+
"contenido de la última página del informe. Esto es útil para incluir alguna "
110+
"información del informe en la contraportada."
111+
112+
#. module: report_qweb_pdf_cover
113+
#: model:ir.model.fields,help:report_qweb_pdf_cover.field_ir_actions_report__front_cover_overlap
114+
msgid ""
115+
"When set, the front cover of the report will overlap with the contents of "
116+
"the first page of the report. This is useful to include some information of "
117+
"the report in the front cover."
118+
msgstr ""
119+
"Cuando se establece, la portada del informe se superpondrá con el contenido "
120+
"de la primera página del informe. Esto es útil para incluir alguna "
121+
"información del informe en la portada."
122+
123+
#. module: report_qweb_pdf_cover
124+
#. odoo-python
125+
#: code:addons/report_qweb_pdf_cover/models/ir_actions_report.py:0
126+
#, python-format
127+
msgid ""
128+
"Your back cover PDF contains more than one page, all but the first one will "
129+
"be ignored."
130+
msgstr ""
131+
"Su contraportada PDF contiene más de una página, todas menos la primera se "
132+
"ignorarán."
133+
134+
#. module: report_qweb_pdf_cover
135+
#. odoo-python
136+
#: code:addons/report_qweb_pdf_cover/models/ir_actions_report.py:0
137+
#, python-format
138+
msgid "Your back cover PDF does not contain any pages."
139+
msgstr "Su contraportada PDF no contiene ninguna página."
140+
141+
#. module: report_qweb_pdf_cover
142+
#. odoo-python
143+
#: code:addons/report_qweb_pdf_cover/models/ir_actions_report.py:0
144+
#, python-format
145+
msgid ""
146+
"Your front cover PDF contains more than one page, all but the first one will"
147+
" be ignored."
148+
msgstr ""
149+
"Su portada PDF contiene más de una página, todas menos la primera se "
150+
"ignorarán."
151+
152+
#. module: report_qweb_pdf_cover
153+
#. odoo-python
154+
#: code:addons/report_qweb_pdf_cover/models/ir_actions_report.py:0
155+
#, python-format
156+
msgid "Your front cover PDF does not contain any pages."
157+
msgstr "Su portada PDF no contiene ninguna página"

0 commit comments

Comments
 (0)