diff --git a/report_qweb_pdf_cover/README.rst b/report_qweb_pdf_cover/README.rst index 989b5165cc..9014b2a146 100644 --- a/report_qweb_pdf_cover/README.rst +++ b/report_qweb_pdf_cover/README.rst @@ -17,13 +17,13 @@ Report QWeb PDF Cover :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/16.0/report_qweb_pdf_cover + :target: https://github.com/OCA/reporting-engine/tree/14.0/report_qweb_pdf_cover :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-16-0/reporting-engine-16-0-report_qweb_pdf_cover + :target: https://translation.odoo-community.org/projects/reporting-engine-14-0/reporting-engine-14-0-report_qweb_pdf_cover :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png - :target: https://runboat.odoo-community.org/builds?repo=OCA/reporting-engine&target_branch=16.0 + :target: https://runboat.odoo-community.org/builds?repo=OCA/reporting-engine&target_branch=14.0 :alt: Try me on Runboat |badge1| |badge2| |badge3| |badge4| |badge5| @@ -67,7 +67,7 @@ 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 to smash it by providing a detailed and welcomed -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -97,6 +97,6 @@ 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. +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_pdf_cover/__manifest__.py b/report_qweb_pdf_cover/__manifest__.py index b0234148f8..46ec82600f 100644 --- a/report_qweb_pdf_cover/__manifest__.py +++ b/report_qweb_pdf_cover/__manifest__.py @@ -7,7 +7,7 @@ "author": "ForgeFlow, Odoo Community Association (OCA)", "website": "https://github.com/OCA/reporting-engine", "category": "Reporting", - "version": "16.0.1.0.0", + "version": "14.0.1.0.0", "license": "AGPL-3", "depends": ["web"], "data": ["views/ir_actions_views.xml"], diff --git a/report_qweb_pdf_cover/models/ir_actions_report.py b/report_qweb_pdf_cover/models/ir_actions_report.py index d06d502b2b..cf4bf3bfd3 100644 --- a/report_qweb_pdf_cover/models/ir_actions_report.py +++ b/report_qweb_pdf_cover/models/ir_actions_report.py @@ -71,15 +71,13 @@ def pdf_check_pages(self, num_pages, front=True): ) return True - def load_covers( - self, report_sudo, front_cover, back_cover, use_front_cover, use_back_cover - ): + def load_covers(self, front_cover, back_cover, use_front_cover, use_back_cover): if use_front_cover: - front_cover_pdf = self.front_cover_pdf or report_sudo.front_cover_pdf + front_cover_pdf = self.front_cover_pdf if front_cover_pdf: front_cover = b64decode(front_cover_pdf) if use_back_cover: - back_cover_pdf = self.back_cover_pdf or report_sudo.back_cover_pdf + back_cover_pdf = self.back_cover_pdf if back_cover_pdf: back_cover = b64decode(back_cover_pdf) return front_cover, back_cover @@ -147,7 +145,6 @@ def insert_cover_pages( def _run_wkhtmltopdf( self, bodies, - report_ref=False, header=None, footer=None, landscape=False, @@ -156,7 +153,6 @@ def _run_wkhtmltopdf( ): result = super()._run_wkhtmltopdf( bodies, - report_ref=report_ref, header=header, footer=footer, landscape=landscape, @@ -164,20 +160,17 @@ def _run_wkhtmltopdf( set_viewport_size=set_viewport_size, ) - report_sudo = self._get_report(report_ref) front_cover = False back_cover = False - use_front_cover = self.use_front_cover or report_sudo.use_front_cover - use_back_cover = self.use_back_cover or report_sudo.use_back_cover - front_cover_overlap = ( - self.front_cover_overlap or report_sudo.front_cover_overlap - ) - back_cover_overlap = self.back_cover_overlap or report_sudo.back_cover_overlap + use_front_cover = self.use_front_cover + use_back_cover = self.use_back_cover + front_cover_overlap = self.front_cover_overlap + back_cover_overlap = self.back_cover_overlap if not use_front_cover and not use_back_cover: return result front_cover, back_cover = self.load_covers( - report_sudo, front_cover, back_cover, use_front_cover, use_back_cover + front_cover, back_cover, use_front_cover, use_back_cover ) if not front_cover and not back_cover: return result diff --git a/report_qweb_pdf_cover/static/description/index.html b/report_qweb_pdf_cover/static/description/index.html index 2f6499217a..4b9de577e8 100644 --- a/report_qweb_pdf_cover/static/description/index.html +++ b/report_qweb_pdf_cover/static/description/index.html @@ -8,10 +8,11 @@ /* :Author: David Goodger (goodger@python.org) -:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $ +:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $ :Copyright: This stylesheet has been placed in the public domain. Default cascading style sheet for the HTML output of Docutils. +Despite the name, some widely supported CSS2 features are used. See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to customize this style sheet. @@ -274,7 +275,7 @@ margin-left: 2em ; margin-right: 2em } -pre.code .ln { color: grey; } /* line numbers */ +pre.code .ln { color: gray; } /* line numbers */ pre.code, code { background-color: #eeeeee } pre.code .comment, code .comment { color: #5C6576 } pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } @@ -300,7 +301,7 @@ span.pre { white-space: pre } -span.problematic { +span.problematic, pre.problematic { color: red } span.section-subtitle { @@ -368,7 +369,7 @@

Report QWeb PDF Cover

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! source digest: sha256:1287ee62d703ed048f33bb706f289cf01e5c99bead22b8b612d69e88071a4d67 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

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

+

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

This module allows for front and back covers to be added to the generated PDF reports. They can be added as a separate page, at the beginning or the end of the report, but they can also overlap the first and last page of the actual @@ -410,7 +411,7 @@

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 to smash it by providing a detailed and welcomed -feedback.

+feedback.

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

@@ -430,11 +431,13 @@

Contributors

Maintainers

This module is maintained by the OCA.

-Odoo Community Association + +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.

+

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.