|
| 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. |
0 commit comments