Skip to content

Commit a3ba9f8

Browse files
authored
Merge pull request #904 from OCA/19.0
Syncing from upstream OCA/reporting-engine (19.0)
2 parents 20faf7e + da43a77 commit a3ba9f8

File tree

21 files changed

+1091
-1
lines changed

21 files changed

+1091
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ addon | version | maintainers | summary
2424
[bi_sql_editor](bi_sql_editor/) | 19.0.1.0.1 | <a href='https://github.com/legalsylvain'><img src='https://github.com/legalsylvain.png' width='32' height='32' style='border-radius:50%;' alt='legalsylvain'/></a> | BI Views builder, based on Materialized or Normal SQL Views
2525
[report_csv](report_csv/) | 19.0.1.0.0 | | Base module to create csv report
2626
[report_qweb_element_page_visibility](report_qweb_element_page_visibility/) | 19.0.1.0.0 | | Report Qweb Element Page Visibility
27+
[report_qweb_parameter](report_qweb_parameter/) | 19.0.1.0.0 | | Add new parameters for qweb templates in order to reduce field length and check minimal length
2728
[report_xlsx](report_xlsx/) | 19.0.1.0.2 | | Base module to create xlsx report
2829
[report_xlsx_helper](report_xlsx_helper/) | 19.0.1.0.0 | | Report xlsx helpers
2930
[report_xml](report_xml/) | 19.0.1.0.0 | | Allow to generate XML reports

report_qweb_parameter/README.rst

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
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 QWeb Parameter
7+
=====================
8+
9+
..
10+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
11+
!! This file is generated by oca-gen-addon-readme !!
12+
!! changes will be overwritten. !!
13+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
14+
!! source digest: sha256:4812e6abcc51899cc56548ab26a64b3f151c6a847a99f732c5f4deddeff326f7
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%2Freporting--engine-lightgray.png?logo=github
24+
:target: https://github.com/OCA/reporting-engine/tree/19.0/report_qweb_parameter
25+
:alt: OCA/reporting-engine
26+
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
27+
:target: https://translation.odoo-community.org/projects/reporting-engine-19-0/reporting-engine-19-0-report_qweb_parameter
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/reporting-engine&target_branch=19.0
31+
:alt: Try me on Runboat
32+
33+
|badge1| |badge2| |badge3| |badge4| |badge5|
34+
35+
This module allows you to add new parameters on QWeb reports. Currently,
36+
we have defined a field maximum on a report and a validation of maximal
37+
and minimal size. It is useful on xml reports in order to validate
38+
length. XML are sometimes XSD dependant and we must validate its format.
39+
For example, in spanish facturae
40+
(http://www.facturae.gob.es/Paginas/Index.aspx), where length and format
41+
must be validated in several fields in order to send an invoice.
42+
43+
**Table of contents**
44+
45+
.. contents::
46+
:local:
47+
48+
Usage
49+
=====
50+
51+
1. Add a t-length attribute on report templates fields that will
52+
truncate the field
53+
2. Add a t-minlength attribute on report template fields that will check
54+
the min length
55+
3. Add a t-maxlength attribute on report template fields that will check
56+
the max length
57+
58+
Bug Tracker
59+
===========
60+
61+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/reporting-engine/issues>`_.
62+
In case of trouble, please check there if your issue has already been reported.
63+
If you spotted it first, help us to smash it by providing a detailed and welcomed
64+
`feedback <https://github.com/OCA/reporting-engine/issues/new?body=module:%20report_qweb_parameter%0Aversion:%2019.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
65+
66+
Do not contact contributors directly about support or help with technical issues.
67+
68+
Credits
69+
=======
70+
71+
Authors
72+
-------
73+
74+
* Creu Blanca
75+
76+
Contributors
77+
------------
78+
79+
- Enric Tobella <[email protected]>
80+
81+
- `Tecnativa <https://www.tecnativa.com>`__:
82+
83+
- Carlos Roca
84+
85+
- Iván Antón <[email protected]>
86+
87+
- `Sygel Technology <https://www.sygel.es>`__:
88+
89+
- Valentin Vinagre
90+
91+
- `Studio73 <https://www.studio73.es>`__:
92+
93+
- Alex Garcia
94+
95+
Maintainers
96+
-----------
97+
98+
This module is maintained by the OCA.
99+
100+
.. image:: https://odoo-community.org/logo.png
101+
:alt: Odoo Community Association
102+
:target: https://odoo-community.org
103+
104+
OCA, or the Odoo Community Association, is a nonprofit organization whose
105+
mission is to support the collaborative development of Odoo features and
106+
promote its widespread use.
107+
108+
This module is part of the `OCA/reporting-engine <https://github.com/OCA/reporting-engine/tree/19.0/report_qweb_parameter>`_ project on GitHub.
109+
110+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

report_qweb_parameter/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
2+
3+
from . import models
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Copyright 2017 Creu Blanca
2+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
3+
4+
{
5+
"name": "Report QWeb Parameter",
6+
"version": "19.0.1.0.0",
7+
"license": "AGPL-3",
8+
"summary": """
9+
Add new parameters for qweb templates in order to reduce field length
10+
and check minimal length
11+
""",
12+
"author": "Creu Blanca, Odoo Community Association (OCA)",
13+
"website": "https://github.com/OCA/reporting-engine",
14+
"category": "Technical Settings",
15+
"depends": ["web"],
16+
"installable": True,
17+
}

report_qweb_parameter/i18n/ca.po

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * report_qweb_parameter
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 15.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"PO-Revision-Date: 2022-06-15 18:05+0000\n"
10+
"Last-Translator: jabelchi <[email protected]>\n"
11+
"Language-Team: none\n"
12+
"Language: ca\n"
13+
"MIME-Version: 1.0\n"
14+
"Content-Type: text/plain; charset=UTF-8\n"
15+
"Content-Transfer-Encoding: \n"
16+
"Plural-Forms: nplurals=2; plural=n != 1;\n"
17+
"X-Generator: Weblate 4.3.2\n"
18+
19+
#. module: report_qweb_parameter
20+
#: model:ir.actions.report,name:report_qweb_parameter.test_report_length_report_id
21+
msgid "Length Report"
22+
msgstr "Longitud de l'informe"
23+
24+
#. module: report_qweb_parameter
25+
#. odoo-python
26+
#: code:addons/report_qweb_parameter/models/ir_qweb.py:0
27+
#, python-format
28+
msgid "Length cannot be less than %s"
29+
msgstr "La longitut no pot ser menor que %s"
30+
31+
#. module: report_qweb_parameter
32+
#. odoo-python
33+
#: code:addons/report_qweb_parameter/models/ir_qweb.py:0
34+
#, python-format
35+
msgid "Length cannot be more than %s"
36+
msgstr "La llargada no pot ser més gran que %s"
37+
38+
#. module: report_qweb_parameter
39+
#: model:ir.model,name:report_qweb_parameter.model_ir_qweb
40+
msgid "Qweb"
41+
msgstr "Qweb"

report_qweb_parameter/i18n/es.po

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * report_qweb_parameter
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 12.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"POT-Creation-Date: \n"
10+
"PO-Revision-Date: \n"
11+
"Last-Translator: Carlos <[email protected]>\n"
12+
"Language-Team: \n"
13+
"Language: es\n"
14+
"MIME-Version: 1.0\n"
15+
"Content-Type: text/plain; charset=UTF-8\n"
16+
"Content-Transfer-Encoding: 8bit\n"
17+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
18+
"X-Generator: Poedit 2.0.6\n"
19+
20+
#. module: report_qweb_parameter
21+
#: model:ir.actions.report,name:report_qweb_parameter.test_report_length_report_id
22+
msgid "Length Report"
23+
msgstr "Longitud del informe"
24+
25+
#. module: report_qweb_parameter
26+
#. odoo-python
27+
#: code:addons/report_qweb_parameter/models/ir_qweb.py:0
28+
#, python-format
29+
msgid "Length cannot be less than %s"
30+
msgstr "La longitud no puede ser menor a %s"
31+
32+
#. module: report_qweb_parameter
33+
#. odoo-python
34+
#: code:addons/report_qweb_parameter/models/ir_qweb.py:0
35+
#, python-format
36+
msgid "Length cannot be more than %s"
37+
msgstr "La longitud no puede ser mayor a %s"
38+
39+
#. module: report_qweb_parameter
40+
#: model:ir.model,name:report_qweb_parameter.model_ir_qweb
41+
msgid "Qweb"
42+
msgstr "Qweb"

report_qweb_parameter/i18n/fr.po

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * report_qweb_parameter
4+
#
5+
# Translators:
6+
# Nicolas JEUDY <[email protected]>, 2018
7+
msgid ""
8+
msgstr ""
9+
"Project-Id-Version: Odoo Server 11.0\n"
10+
"Report-Msgid-Bugs-To: \n"
11+
"POT-Creation-Date: 2018-01-05 17:53+0000\n"
12+
"PO-Revision-Date: 2018-01-05 17:53+0000\n"
13+
"Last-Translator: Nicolas JEUDY <[email protected]>, 2018\n"
14+
"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n"
15+
"Language: fr\n"
16+
"MIME-Version: 1.0\n"
17+
"Content-Type: text/plain; charset=UTF-8\n"
18+
"Content-Transfer-Encoding: \n"
19+
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
20+
21+
#. module: report_qweb_parameter
22+
#: model:ir.actions.report,name:report_qweb_parameter.test_report_length_report_id
23+
msgid "Length Report"
24+
msgstr "Longueur du rapport "
25+
26+
#. module: report_qweb_parameter
27+
#. odoo-python
28+
#: code:addons/report_qweb_parameter/models/ir_qweb.py:0
29+
#, python-format
30+
msgid "Length cannot be less than %s"
31+
msgstr "La longueur du rapport ne peut pas être inférieure à %s"
32+
33+
#. module: report_qweb_parameter
34+
#. odoo-python
35+
#: code:addons/report_qweb_parameter/models/ir_qweb.py:0
36+
#, python-format
37+
msgid "Length cannot be more than %s"
38+
msgstr "La longueur du rapport ne peut pas être supérieure à %s"
39+
40+
#. module: report_qweb_parameter
41+
#: model:ir.model,name:report_qweb_parameter.model_ir_qweb
42+
msgid "Qweb"
43+
msgstr ""
44+
45+
#~ msgid "ir.qweb"
46+
#~ msgstr "ir.qweb"

report_qweb_parameter/i18n/it.po

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * report_qweb_parameter
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 13.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"PO-Revision-Date: 2020-11-20 23:36+0000\n"
10+
"Last-Translator: Alessandro Fiorino <[email protected]>\n"
11+
"Language-Team: none\n"
12+
"Language: it\n"
13+
"MIME-Version: 1.0\n"
14+
"Content-Type: text/plain; charset=UTF-8\n"
15+
"Content-Transfer-Encoding: \n"
16+
"Plural-Forms: nplurals=2; plural=n != 1;\n"
17+
"X-Generator: Weblate 3.10\n"
18+
19+
#. module: report_qweb_parameter
20+
#: model:ir.actions.report,name:report_qweb_parameter.test_report_length_report_id
21+
msgid "Length Report"
22+
msgstr "Lunghezza Report"
23+
24+
#. module: report_qweb_parameter
25+
#. odoo-python
26+
#: code:addons/report_qweb_parameter/models/ir_qweb.py:0
27+
#, python-format
28+
msgid "Length cannot be less than %s"
29+
msgstr "La lunghezza non può essere meno di %s"
30+
31+
#. module: report_qweb_parameter
32+
#. odoo-python
33+
#: code:addons/report_qweb_parameter/models/ir_qweb.py:0
34+
#, python-format
35+
msgid "Length cannot be more than %s"
36+
msgstr "La lunghezza non può essere più di %s"
37+
38+
#. module: report_qweb_parameter
39+
#: model:ir.model,name:report_qweb_parameter.model_ir_qweb
40+
msgid "Qweb"
41+
msgstr "Qweb"

report_qweb_parameter/i18n/pt.po

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * report_qweb_parameter
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 12.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"PO-Revision-Date: 2019-08-14 13:44+0000\n"
10+
"Last-Translator: Pedro Castro Silva <[email protected]>\n"
11+
"Language-Team: none\n"
12+
"Language: pt\n"
13+
"MIME-Version: 1.0\n"
14+
"Content-Type: text/plain; charset=UTF-8\n"
15+
"Content-Transfer-Encoding: \n"
16+
"Plural-Forms: nplurals=2; plural=n > 1;\n"
17+
"X-Generator: Weblate 3.7.1\n"
18+
19+
#. module: report_qweb_parameter
20+
#: model:ir.actions.report,name:report_qweb_parameter.test_report_length_report_id
21+
msgid "Length Report"
22+
msgstr "Relatório de Comprimento"
23+
24+
#. module: report_qweb_parameter
25+
#. odoo-python
26+
#: code:addons/report_qweb_parameter/models/ir_qweb.py:0
27+
#, python-format
28+
msgid "Length cannot be less than %s"
29+
msgstr "Comprimento não pode ser superior a %s"
30+
31+
#. module: report_qweb_parameter
32+
#. odoo-python
33+
#: code:addons/report_qweb_parameter/models/ir_qweb.py:0
34+
#, python-format
35+
msgid "Length cannot be more than %s"
36+
msgstr "Comprimento não pode ser inferior a %s"
37+
38+
#. module: report_qweb_parameter
39+
#: model:ir.model,name:report_qweb_parameter.model_ir_qweb
40+
msgid "Qweb"
41+
msgstr ""
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * report_qweb_parameter
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 19.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"Last-Translator: \n"
10+
"Language-Team: \n"
11+
"MIME-Version: 1.0\n"
12+
"Content-Type: text/plain; charset=UTF-8\n"
13+
"Content-Transfer-Encoding: \n"
14+
"Plural-Forms: \n"
15+
16+
#. module: report_qweb_parameter
17+
#: model:ir.model.fields,field_description:report_qweb_parameter.field_ir_qweb__display_name
18+
msgid "Display Name"
19+
msgstr ""
20+
21+
#. module: report_qweb_parameter
22+
#: model:ir.model.fields,field_description:report_qweb_parameter.field_ir_qweb__id
23+
msgid "ID"
24+
msgstr ""
25+
26+
#. module: report_qweb_parameter
27+
#. odoo-python
28+
#: code:addons/report_qweb_parameter/models/ir_qweb.py:0
29+
msgid "Length cannot be less than %s"
30+
msgstr ""
31+
32+
#. module: report_qweb_parameter
33+
#. odoo-python
34+
#: code:addons/report_qweb_parameter/models/ir_qweb.py:0
35+
msgid "Length cannot be more than %s"
36+
msgstr ""
37+
38+
#. module: report_qweb_parameter
39+
#: model:ir.model,name:report_qweb_parameter.model_ir_qweb
40+
msgid "Qweb"
41+
msgstr ""

0 commit comments

Comments
 (0)