Skip to content

Commit 18e12eb

Browse files
committed
Merge PR #956 into 18.0
Signed-off-by pedrobaeza
2 parents 521a13e + 7a3014b commit 18e12eb

13 files changed

+739
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
===================================
2+
Report Qweb Element Page Visibility
3+
===================================
4+
5+
..
6+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7+
!! This file is generated by oca-gen-addon-readme !!
8+
!! changes will be overwritten. !!
9+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10+
!! source digest: sha256:b5da9ed900dd8deb9feaf4a4b2dd4d79f78b479759a83fc15e2b61be1ebfb2d1
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/18.0/report_qweb_element_page_visibility
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-18-0/reporting-engine-18-0-report_qweb_element_page_visibility
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=18.0
27+
:alt: Try me on Runboat
28+
29+
|badge1| |badge2| |badge3| |badge4| |badge5|
30+
31+
This module allows you to use 4 classes in QWEB reports:
32+
33+
- not-first-page: shows element in every page but first
34+
- not-last-page: shows element in every page but last
35+
- first-page: shows element only on first page
36+
- last-page: shows element only on last page
37+
38+
**Table of contents**
39+
40+
.. contents::
41+
:local:
42+
43+
Usage
44+
=====
45+
46+
To use this module, you need to:
47+
48+
In the QWEB ``ir.ui.views`` used by your report, you can add an element
49+
with css class with any of the classes described above. For example if
50+
you need to improve invoice report header with invoice's number in every
51+
page but first, and sale order report header with order's name in every
52+
page but last, add this code to external_layout_header:
53+
54+
::
55+
56+
<t t-if="o._table=='account_invoice'">
57+
<div class="not-first-page">
58+
<span t-esc="o.number"/>
59+
</div>
60+
</t>
61+
<t t-if="o._table=='sale_order'">
62+
<div class="not-last-page">
63+
<span t-esc="o.name"/>
64+
</div>
65+
</t>
66+
67+
Bug Tracker
68+
===========
69+
70+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/reporting-engine/issues>`_.
71+
In case of trouble, please check there if your issue has already been reported.
72+
If you spotted it first, help us to smash it by providing a detailed and welcomed
73+
`feedback <https://github.com/OCA/reporting-engine/issues/new?body=module:%20report_qweb_element_page_visibility%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
74+
75+
Do not contact contributors directly about support or help with technical issues.
76+
77+
Credits
78+
=======
79+
80+
Authors
81+
-------
82+
83+
* Agile Business Group
84+
85+
Contributors
86+
------------
87+
88+
- Nicola Malcontenti <nicola.malcontenti@agilebg.com>
89+
90+
- Lorenzo Battistini <lorenzo.battistini@agilebg.com>
91+
92+
- Alessio Gerace <alessio.gerace@agilebg.com>
93+
94+
- Alex Comba <alex.comba@agilebg.com>
95+
96+
- Saran Limpajitkutaporn <saranl@ecosoft.co.th>
97+
98+
- Pimolnat Suntian <pimolnats@ecosoft.co.th>
99+
100+
- Tharathip Chaweewongphan <tharathipc@ecosoft.co.th>
101+
102+
- `Trobz <https://trobz.com>`__:
103+
104+
- Hai Lang <hailn@trobz.com>
105+
106+
- Ángel Tornero Hernández <angel.tornero@braintec.com>
107+
108+
Other credits
109+
-------------
110+
111+
The migration of this module from 14.0 to 14.0 was financially supported
112+
by Camptocamp
113+
114+
Maintainers
115+
-----------
116+
117+
This module is maintained by the OCA.
118+
119+
.. image:: https://odoo-community.org/logo.png
120+
:alt: Odoo Community Association
121+
:target: https://odoo-community.org
122+
123+
OCA, or the Odoo Community Association, is a nonprofit organization whose
124+
mission is to support the collaborative development of Odoo features and
125+
promote its widespread use.
126+
127+
This module is part of the `OCA/reporting-engine <https://github.com/OCA/reporting-engine/tree/18.0/report_qweb_element_page_visibility>`_ project on GitHub.
128+
129+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Copyright 2015 Agile Business Group
2+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Copyright 2015 Agile Business Group
2+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
3+
4+
{
5+
"name": "Report Qweb Element Page Visibility",
6+
"version": "18.0.1.0.0",
7+
"author": "Agile Business Group, Odoo Community Association (OCA)",
8+
"category": "Tools",
9+
"website": "https://github.com/OCA/reporting-engine",
10+
"license": "AGPL-3",
11+
"application": False,
12+
"installable": True,
13+
"data": ["views/layouts.xml"],
14+
"depends": ["web"],
15+
}

report_qweb_element_page_visibility/i18n/it.po

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
#
4+
msgid ""
5+
msgstr ""
6+
"Project-Id-Version: Odoo Server 17.0\n"
7+
"Report-Msgid-Bugs-To: \n"
8+
"Last-Translator: \n"
9+
"Language-Team: \n"
10+
"MIME-Version: 1.0\n"
11+
"Content-Type: text/plain; charset=UTF-8\n"
12+
"Content-Transfer-Encoding: \n"
13+
"Plural-Forms: \n"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["whool"]
3+
build-backend = "whool.buildapi"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
- Nicola Malcontenti \<<nicola.malcontenti@agilebg.com>\>
2+
3+
- Lorenzo Battistini \<<lorenzo.battistini@agilebg.com>\>
4+
5+
- Alessio Gerace \<<alessio.gerace@agilebg.com>\>
6+
7+
- Alex Comba \<<alex.comba@agilebg.com>\>
8+
9+
- Saran Limpajitkutaporn \<<saranl@ecosoft.co.th>\>
10+
11+
- Pimolnat Suntian \<<pimolnats@ecosoft.co.th>\>
12+
13+
- Tharathip Chaweewongphan \<<tharathipc@ecosoft.co.th>\>
14+
15+
- [Trobz](https://trobz.com):
16+
- Hai Lang \<<hailn@trobz.com>\>
17+
18+
- Ángel Tornero Hernández \<<angel.tornero@braintec.com>\>
19+
20+
- Daniel Lagin \<<daniel.lagin@braintec.com>\>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
The migration of this module from 14.0 to 14.0 was financially supported
2+
by Camptocamp
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
This module allows you to use 4 classes in QWEB reports:
2+
3+
- not-first-page: shows element in every page but first
4+
- not-last-page: shows element in every page but last
5+
- first-page: shows element only on first page
6+
- last-page: shows element only on last page
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
To use this module, you need to:
2+
3+
In the QWEB `ir.ui.views` used by your report, you can add an element
4+
with css class with any of the classes described above. For example if
5+
you need to improve invoice report header with invoice's number in every
6+
page but first, and sale order report header with order's name in every
7+
page but last, add this code to external_layout_header:
8+
9+
<t t-if="o._table=='account_invoice'">
10+
<div class="not-first-page">
11+
<span t-esc="o.number"/>
12+
</div>
13+
</t>
14+
<t t-if="o._table=='sale_order'">
15+
<div class="not-last-page">
16+
<span t-esc="o.name"/>
17+
</div>
18+
</t>
Loading

0 commit comments

Comments
 (0)