Skip to content

Commit

Permalink
[ADD] account_invoice_report_pagebreak
Browse files Browse the repository at this point in the history
  • Loading branch information
petrus-v committed Dec 14, 2023
1 parent 8054df0 commit 2fe9258
Show file tree
Hide file tree
Showing 13 changed files with 645 additions and 0 deletions.
90 changes: 90 additions & 0 deletions account_invoice_report_pagebreak/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
=========================
Invoice report page break
=========================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! 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%2Faccount--invoice--reporting-lightgray.png?logo=github
:target: https://github.com/OCA/account-invoice-reporting/tree/14.0/account_invoice_report_pagebreak
:alt: OCA/account-invoice-reporting
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/account-invoice-reporting-14-0/account-invoice-reporting-14-0-account_invoice_report_pagebreak
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/94/14.0
:alt: Try me on Runbot

|badge1| |badge2| |badge3| |badge4| |badge5|

Control Page Breaks in PDF invoice report.

This split the main table by section and avoid
as much as possible breaking page inside a section.

**Table of contents**

.. contents::
:local:

Known issues / Roadmap
======================

* Gives more controls to end users to allows to force breaking
pages between any rows

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/account-invoice-reporting/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 <https://github.com/OCA/account-invoice-reporting/issues/new?body=module:%20account_invoice_report_pagebreak%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

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

Credits
=======

Authors
~~~~~~~

* Pierre Verkest

Contributors
~~~~~~~~~~~~

* Pierre Verkest <[email protected]>

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.

.. |maintainer-petrus-v| image:: https://github.com/petrus-v.png?size=40px
:target: https://github.com/petrus-v
:alt: petrus-v

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-petrus-v|

This module is part of the `OCA/account-invoice-reporting <https://github.com/OCA/account-invoice-reporting/tree/14.0/account_invoice_report_pagebreak>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Empty file.
20 changes: 20 additions & 0 deletions account_invoice_report_pagebreak/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Copyright 2023 CGI37 (https://www.cgi37.com).
# @author Pierre Verkest <[email protected]>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Invoice report page break",
"summary": "Control Page Breaks in PDF invoice report",
"version": "14.0.1.0.0",
"author": "Pierre Verkest, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/account-invoice-reporting",
"license": "AGPL-3",
"category": "Accounting",
"depends": [
"account",
"report_qweb_table_pagebreak",
],
"data": [
"reports/report_invoice.xml",
],
"maintainers": ["petrus-v"],
}
1 change: 1 addition & 0 deletions account_invoice_report_pagebreak/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* Pierre Verkest <[email protected]>
4 changes: 4 additions & 0 deletions account_invoice_report_pagebreak/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Control Page Breaks in PDF invoice report.

This split the main table by section and avoid
as much as possible breaking page inside a section.
2 changes: 2 additions & 0 deletions account_invoice_report_pagebreak/readme/ROADMAP.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
* Gives more controls to end users to allows to force breaking
pages between any rows
15 changes: 15 additions & 0 deletions account_invoice_report_pagebreak/reports/report_invoice.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8" ?>
<!--
Copyright 2023 CGI37 (https://www.cgi37.com/)
@author: Pierre Verkest <[email protected]>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->
<odoo>
<template id="report_invoice_document" inherit_id="account.report_invoice_document">
<xpath expr="//tbody[hasclass('invoice_tbody')]/t/tr" position="attributes">
<attribute
name="t-attf-qweb-table-page-break"
>{{line.display_type == 'line_section' and 'avoid' or ''}}</attribute>
</xpath>
</template>
</odoo>
Loading

0 comments on commit 2fe9258

Please sign in to comment.