OCA reporting engine fork for dev and update.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

77 lines
2.5 KiB

  1. .. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
  2. :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
  3. :alt: License: AGPL-3
  4. ===================================
  5. Report Qweb Element Page Visibility
  6. ===================================
  7. This module allows you to use 4 classes in QWEB reports:
  8. - not-first-page: shows element in every page but first
  9. - not-last-page: shows element in every page but last
  10. - first-page: shows element only on first page
  11. - last-page: shows element only on last page
  12. Usage
  13. =====
  14. To use this module, you need to:
  15. In the QWEB ``ir.ui.views`` used by your report,
  16. you can add an element with css class with any of the classes described above.
  17. For example if you need to improve invoice report header with
  18. invoice's number in every page but first, and sale order report header
  19. with order's name in every page but last, add this code to external_layout_header::
  20. <t t-if="o._table=='account_invoice'">
  21. <div class="not-first-page">
  22. <span t-esc="o.number"/>
  23. </div>
  24. </t>
  25. <t t-if="o._table=='sale_order'">
  26. <div class="not-last-page">
  27. <span t-esc="o.name"/>
  28. </div>
  29. </t>
  30. .. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
  31. :alt: Try me on Runbot
  32. :target: https://runbot.odoo-community.org/runbot/143/8.0
  33. Bug Tracker
  34. ===========
  35. Bugs are tracked on `GitHub Issues <https://github.com/OCA/
  36. reporting-engine/issues>`_.
  37. In case of trouble, please check there if your issue has already been reported.
  38. If you spotted it first, help us smashing it by providing a detailed and welcomed feedback `here <https://github.com/OCA/reporting-engine/issues/new?body=module:%20
  39. report_qweb_element_page_visibility%0Aversion:%20
  40. 8.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
  41. Credits
  42. =======
  43. Contributors
  44. ------------
  45. * Nicola Malcontenti <nicola.malcontenti@agilebg.com>
  46. * Lorenzo Battistini <lorenzo.battistini@agilebg.com>
  47. * Alessio Gerace <alessio.gerace@agilebg.com>
  48. * Alex Comba <alex.comba@agilebg.com>
  49. Maintainer
  50. ----------
  51. .. image:: https://odoo-community.org/logo.png
  52. :alt: Odoo Community Association
  53. :target: https://odoo-community.org
  54. This module is maintained by the OCA.
  55. OCA, or the Odoo Community Association, is a nonprofit organization whose
  56. mission is to support the collaborative development of Odoo features and
  57. promote its widespread use.
  58. To contribute to this module, please visit http://odoo-community.org.