From c7e97ca9ef6e6f55e6a7bde149dff919dec02d0d Mon Sep 17 00:00:00 2001 From: Sebastien LANGE Date: Wed, 1 Jun 2016 08:04:43 +0200 Subject: [PATCH 01/22] [IMP] Migrate report_qweb_element_page_visibility module to 9.0 --- .../__openerp__.py | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 report_qweb_element_page_visibility/__openerp__.py diff --git a/report_qweb_element_page_visibility/__openerp__.py b/report_qweb_element_page_visibility/__openerp__.py new file mode 100644 index 000000000..fcbbf3e4f --- /dev/null +++ b/report_qweb_element_page_visibility/__openerp__.py @@ -0,0 +1,37 @@ +# -*- coding: utf-8 -*- +######################################################################### +# # +# Copyright (C) 2015 Agile Business Group # +# # +# This program is free software: you can redistribute it and/or modify # +# it under the terms of the GNU Affero General Public License as # +# published by the Free Software Foundation, either version 3 of the # +# License, or (at your option) any later version. # +# # +# This program is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU Affero General Public Licensefor more details. # +# # +# You should have received a copy of the # +# GNU Affero General Public License # +# along with this program. If not, see . # +# # +######################################################################### + +{ + 'name': 'Report Qweb Element Page Visibility', + 'version': '9.0.1.0.0', + 'author': 'Agile Business Group, Odoo Community Association (OCA)', + 'category': 'Tools', + "website": "https://odoo-community.org/", + "license": "AGPL-3", + "application": False, + "installable": True, + 'data': [ + 'views/layouts.xml', + ], + 'depends': [ + 'report', + ], +} From a8760b3e7dadaad4b85169af2ab4dd2cfbeed288 Mon Sep 17 00:00:00 2001 From: Sebastien LANGE Date: Fri, 2 Sep 2016 20:40:26 +0200 Subject: [PATCH 02/22] [IMP] Change licence header in python files --- .../__init__.py | 3 +++ .../__openerp__.py | 21 ++----------------- 2 files changed, 5 insertions(+), 19 deletions(-) create mode 100644 report_qweb_element_page_visibility/__init__.py diff --git a/report_qweb_element_page_visibility/__init__.py b/report_qweb_element_page_visibility/__init__.py new file mode 100644 index 000000000..ad15c9c0c --- /dev/null +++ b/report_qweb_element_page_visibility/__init__.py @@ -0,0 +1,3 @@ +# -*- coding: utf-8 -*- +# Copyright 2015 Agile Business Group +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). diff --git a/report_qweb_element_page_visibility/__openerp__.py b/report_qweb_element_page_visibility/__openerp__.py index fcbbf3e4f..af192ca00 100644 --- a/report_qweb_element_page_visibility/__openerp__.py +++ b/report_qweb_element_page_visibility/__openerp__.py @@ -1,23 +1,6 @@ # -*- coding: utf-8 -*- -######################################################################### -# # -# Copyright (C) 2015 Agile Business Group # -# # -# This program is free software: you can redistribute it and/or modify # -# it under the terms of the GNU Affero General Public License as # -# published by the Free Software Foundation, either version 3 of the # -# License, or (at your option) any later version. # -# # -# This program is distributed in the hope that it will be useful, # -# but WITHOUT ANY WARRANTY; without even the implied warranty of # -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # -# GNU Affero General Public Licensefor more details. # -# # -# You should have received a copy of the # -# GNU Affero General Public License # -# along with this program. If not, see . # -# # -######################################################################### +# Copyright 2015 Agile Business Group +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { 'name': 'Report Qweb Element Page Visibility', From 95e009f55a57f98ba68dd5b79be750a49bf38ebd Mon Sep 17 00:00:00 2001 From: Sebastien LANGE Date: Fri, 2 Sep 2016 20:42:02 +0200 Subject: [PATCH 03/22] [IMP] Replace by and review indentation in xml file --- .../views/layouts.xml | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 report_qweb_element_page_visibility/views/layouts.xml diff --git a/report_qweb_element_page_visibility/views/layouts.xml b/report_qweb_element_page_visibility/views/layouts.xml new file mode 100644 index 000000000..1cde96c39 --- /dev/null +++ b/report_qweb_element_page_visibility/views/layouts.xml @@ -0,0 +1,46 @@ + + + + + + From 4ffb5b3a0958843c3595bcd9e18b5b7644ef0530 Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Thu, 6 Oct 2016 16:06:44 +0200 Subject: [PATCH 04/22] [MIG] Make modules uninstallable --- report_qweb_element_page_visibility/__openerp__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/report_qweb_element_page_visibility/__openerp__.py b/report_qweb_element_page_visibility/__openerp__.py index af192ca00..206416da0 100644 --- a/report_qweb_element_page_visibility/__openerp__.py +++ b/report_qweb_element_page_visibility/__openerp__.py @@ -10,7 +10,7 @@ "website": "https://odoo-community.org/", "license": "AGPL-3", "application": False, - "installable": True, + 'installable': False, 'data': [ 'views/layouts.xml', ], From 67592bff0c862f8b650b6faa46db3c27fa234226 Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Thu, 6 Oct 2016 16:06:45 +0200 Subject: [PATCH 05/22] [MIG] Rename manifest files --- .../{__openerp__.py => __manifest__.py} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename report_qweb_element_page_visibility/{__openerp__.py => __manifest__.py} (100%) diff --git a/report_qweb_element_page_visibility/__openerp__.py b/report_qweb_element_page_visibility/__manifest__.py similarity index 100% rename from report_qweb_element_page_visibility/__openerp__.py rename to report_qweb_element_page_visibility/__manifest__.py From 5d794d1b9f5b1569d25feddb7056a0ba9082300a Mon Sep 17 00:00:00 2001 From: Invitu Date: Fri, 13 Jan 2017 22:08:11 -1000 Subject: [PATCH 06/22] [MIG] Migrate report_qweb_element_page_visibility to v10 --- report_qweb_element_page_visibility/__manifest__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/report_qweb_element_page_visibility/__manifest__.py b/report_qweb_element_page_visibility/__manifest__.py index 206416da0..dac24af8b 100644 --- a/report_qweb_element_page_visibility/__manifest__.py +++ b/report_qweb_element_page_visibility/__manifest__.py @@ -4,13 +4,13 @@ { 'name': 'Report Qweb Element Page Visibility', - 'version': '9.0.1.0.0', + 'version': '10.0.1.0.0', 'author': 'Agile Business Group, Odoo Community Association (OCA)', 'category': 'Tools', "website": "https://odoo-community.org/", "license": "AGPL-3", "application": False, - 'installable': False, + 'installable': True, 'data': [ 'views/layouts.xml', ], From c3d956bb8acaeab65fd9a8dd320a763ea3f42cb2 Mon Sep 17 00:00:00 2001 From: oca-travis Date: Sat, 23 Jun 2018 20:06:11 +0000 Subject: [PATCH 07/22] [UPD] Update report_qweb_element_page_visibility.pot --- .../i18n/report_qweb_element_page_visibility.pot | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 report_qweb_element_page_visibility/i18n/report_qweb_element_page_visibility.pot diff --git a/report_qweb_element_page_visibility/i18n/report_qweb_element_page_visibility.pot b/report_qweb_element_page_visibility/i18n/report_qweb_element_page_visibility.pot new file mode 100644 index 000000000..b662aad9b --- /dev/null +++ b/report_qweb_element_page_visibility/i18n/report_qweb_element_page_visibility.pot @@ -0,0 +1,14 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: <>\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + From 8a51bc69ba239b9630a64ffd9a10e3b3812bc278 Mon Sep 17 00:00:00 2001 From: Saran L Date: Fri, 24 May 2019 17:36:17 +0700 Subject: [PATCH 08/22] [12.0][MIG] report_qweb_element_page_visibility --- .../README.rst | 104 ++++ .../__init__.py | 1 - .../__manifest__.py | 11 +- .../readme/CONTRIBUTORS.rst | 5 + .../readme/DESCRIPTION.rst | 6 + .../readme/USAGE.rst | 18 + .../static/description/index.html | 451 ++++++++++++++++++ .../views/layouts.xml | 29 +- 8 files changed, 610 insertions(+), 15 deletions(-) create mode 100644 report_qweb_element_page_visibility/README.rst create mode 100644 report_qweb_element_page_visibility/readme/CONTRIBUTORS.rst create mode 100644 report_qweb_element_page_visibility/readme/DESCRIPTION.rst create mode 100644 report_qweb_element_page_visibility/readme/USAGE.rst create mode 100644 report_qweb_element_page_visibility/static/description/index.html diff --git a/report_qweb_element_page_visibility/README.rst b/report_qweb_element_page_visibility/README.rst new file mode 100644 index 000000000..cfd99f9da --- /dev/null +++ b/report_qweb_element_page_visibility/README.rst @@ -0,0 +1,104 @@ +=================================== +Report Qweb Element Page Visibility +=================================== + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png + :target: https://odoo-community.org/page/development-status + :alt: Beta +.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png + :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/12.0/report_qweb_element_page_visibility + :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-12-0/reporting-engine-12-0-report_qweb_element_page_visibility + :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/12.0 + :alt: Try me on Runbot + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module allows you to use 4 classes in QWEB reports: + +* not-first-page: shows element in every page but first +* not-last-page: shows element in every page but last +* first-page: shows element only on first page +* last-page: shows element only on last page + +**Table of contents** + +.. contents:: + :local: + +Usage +===== + +To use this module, you need to: + +In the QWEB ``ir.ui.views`` used by your report, +you can add an element with css class with any of the classes described above. +For example if you need to improve invoice report header with +invoice's number in every page but first, and sale order report header +with order's name in every page but last, add this code to external_layout_header:: + + +
+ +
+
+ +
+ +
+
+ +Bug Tracker +=========== + +Bugs are tracked on `GitHub 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 `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* Agile Business Group + +Contributors +~~~~~~~~~~~~ + +* Nicola Malcontenti +* Lorenzo Battistini +* Alessio Gerace +* Alex Comba +* Saran Limpajitkutaporn + +Maintainers +~~~~~~~~~~~ + +This module is maintained by the OCA. + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use. + +This module is part of the `OCA/reporting-engine `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/report_qweb_element_page_visibility/__init__.py b/report_qweb_element_page_visibility/__init__.py index ad15c9c0c..85b2dc8d1 100644 --- a/report_qweb_element_page_visibility/__init__.py +++ b/report_qweb_element_page_visibility/__init__.py @@ -1,3 +1,2 @@ -# -*- coding: utf-8 -*- # Copyright 2015 Agile Business Group # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). diff --git a/report_qweb_element_page_visibility/__manifest__.py b/report_qweb_element_page_visibility/__manifest__.py index dac24af8b..88659452d 100644 --- a/report_qweb_element_page_visibility/__manifest__.py +++ b/report_qweb_element_page_visibility/__manifest__.py @@ -1,20 +1,19 @@ -# -*- coding: utf-8 -*- # Copyright 2015 Agile Business Group # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { 'name': 'Report Qweb Element Page Visibility', - 'version': '10.0.1.0.0', + 'version': '12.0.1.0.0', 'author': 'Agile Business Group, Odoo Community Association (OCA)', 'category': 'Tools', - "website": "https://odoo-community.org/", - "license": "AGPL-3", - "application": False, + 'website': 'https://github.com/oca/reporting-engine', + 'license': 'AGPL-3', + 'application': False, 'installable': True, 'data': [ 'views/layouts.xml', ], 'depends': [ - 'report', + 'web', ], } diff --git a/report_qweb_element_page_visibility/readme/CONTRIBUTORS.rst b/report_qweb_element_page_visibility/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000..48a376239 --- /dev/null +++ b/report_qweb_element_page_visibility/readme/CONTRIBUTORS.rst @@ -0,0 +1,5 @@ +* Nicola Malcontenti +* Lorenzo Battistini +* Alessio Gerace +* Alex Comba +* Saran Limpajitkutaporn diff --git a/report_qweb_element_page_visibility/readme/DESCRIPTION.rst b/report_qweb_element_page_visibility/readme/DESCRIPTION.rst new file mode 100644 index 000000000..28d75b2ea --- /dev/null +++ b/report_qweb_element_page_visibility/readme/DESCRIPTION.rst @@ -0,0 +1,6 @@ +This module allows you to use 4 classes in QWEB reports: + +* not-first-page: shows element in every page but first +* not-last-page: shows element in every page but last +* first-page: shows element only on first page +* last-page: shows element only on last page diff --git a/report_qweb_element_page_visibility/readme/USAGE.rst b/report_qweb_element_page_visibility/readme/USAGE.rst new file mode 100644 index 000000000..0034abd95 --- /dev/null +++ b/report_qweb_element_page_visibility/readme/USAGE.rst @@ -0,0 +1,18 @@ +To use this module, you need to: + +In the QWEB ``ir.ui.views`` used by your report, +you can add an element with css class with any of the classes described above. +For example if you need to improve invoice report header with +invoice's number in every page but first, and sale order report header +with order's name in every page but last, add this code to external_layout_header:: + + +
+ +
+
+ +
+ +
+
diff --git a/report_qweb_element_page_visibility/static/description/index.html b/report_qweb_element_page_visibility/static/description/index.html new file mode 100644 index 000000000..16b559a43 --- /dev/null +++ b/report_qweb_element_page_visibility/static/description/index.html @@ -0,0 +1,451 @@ + + + + + + +Report Qweb Element Page Visibility + + + +
+

Report Qweb Element Page Visibility

+ + +

Beta License: AGPL-3 OCA/reporting-engine Translate me on Weblate Try me on Runbot

+

This module allows you to use 4 classes in QWEB reports:

+
    +
  • not-first-page: shows element in every page but first
  • +
  • not-last-page: shows element in every page but last
  • +
  • first-page: shows element only on first page
  • +
  • last-page: shows element only on last page
  • +
+

Table of contents

+ +
+

Usage

+

To use this module, you need to:

+

In the QWEB ir.ui.views used by your report, +you can add an element with css class with any of the classes described above. +For example if you need to improve invoice report header with +invoice’s number in every page but first, and sale order report header +with order’s name in every page but last, add this code to external_layout_header:

+
+<t t-if="o._table=='account_invoice'">
+    <div class="not-first-page">
+        <span t-esc="o.number"/>
+    </div>
+</t>
+<t t-if="o._table=='sale_order'">
+    <div class="not-last-page">
+        <span t-esc="o.name"/>
+    </div>
+</t>
+
+
+
+

Bug Tracker

+

Bugs are tracked on GitHub 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.

+

Do not contact contributors directly about support or help with technical issues.

+
+
+

Credits

+
+

Authors

+
    +
  • Agile Business Group
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is maintained by the OCA.

+Odoo Community Association +

OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use.

+

This module is part of the OCA/reporting-engine project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+ + diff --git a/report_qweb_element_page_visibility/views/layouts.xml b/report_qweb_element_page_visibility/views/layouts.xml index 1cde96c39..44d649c78 100644 --- a/report_qweb_element_page_visibility/views/layouts.xml +++ b/report_qweb_element_page_visibility/views/layouts.xml @@ -1,8 +1,7 @@ - -