From c65a39485c1e6777f47a852c196aee0f149a7c8c Mon Sep 17 00:00:00 2001 From: David Date: Tue, 13 Nov 2018 09:14:23 +0100 Subject: [PATCH] [MIG] report_qweb_designer: Migration to 12.0 --- report_qweb_signer/README.rst | 89 +++++++++++++------ report_qweb_signer/__init__.py | 1 - report_qweb_signer/__manifest__.py | 9 +- report_qweb_signer/data/defaults.xml | 7 ++ .../demo/report_partner_demo.xml | 4 +- report_qweb_signer/models/__init__.py | 4 +- .../{report.py => ir_actions_report.py} | 65 +++++++------- .../models/report_certificate.py | 4 +- report_qweb_signer/models/res_company.py | 3 +- report_qweb_signer/readme/CONFIGURE.rst | 30 +++++++ report_qweb_signer/readme/CONTRIBUTORS.rst | 7 ++ report_qweb_signer/readme/CREDITS.rst | 11 +++ report_qweb_signer/readme/DESCRIPTION.rst | 2 + report_qweb_signer/readme/INSTALL.rst | 3 + report_qweb_signer/readme/ROADMAP.rst | 5 ++ report_qweb_signer/readme/USAGE.rst | 10 +++ report_qweb_signer/tests/__init__.py | 1 - .../tests/test_report_qweb_signer.py | 9 +- .../views/report_certificate_view.xml | 2 +- 19 files changed, 181 insertions(+), 85 deletions(-) create mode 100644 report_qweb_signer/data/defaults.xml rename report_qweb_signer/models/{report.py => ir_actions_report.py} (74%) create mode 100644 report_qweb_signer/readme/CONFIGURE.rst create mode 100644 report_qweb_signer/readme/CONTRIBUTORS.rst create mode 100644 report_qweb_signer/readme/CREDITS.rst create mode 100644 report_qweb_signer/readme/DESCRIPTION.rst create mode 100644 report_qweb_signer/readme/INSTALL.rst create mode 100644 report_qweb_signer/readme/ROADMAP.rst create mode 100644 report_qweb_signer/readme/USAGE.rst diff --git a/report_qweb_signer/README.rst b/report_qweb_signer/README.rst index 0c6e70bd..f4b42891 100644 --- a/report_qweb_signer/README.rst +++ b/report_qweb_signer/README.rst @@ -1,22 +1,44 @@ -.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg - :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html - :alt: License: AGPL-3 - ======================= Qweb PDF reports signer ======================= +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! 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_signer + :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_signer + :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 extends the functionality of report module to sign PDFs using a PKCS#12 certificate. +**Table of contents** + +.. contents:: + :local: Installation ============ -To install this module, you need to install Java JDK:: - - apt-get install openjdk-7-jre-headless +To install this module, you need to install Java JDK Headlees, e.g.: + apt-get install openjdk-8-jre-headless Configuration ============= @@ -42,7 +64,7 @@ For example, if you want to sign only customer invoices in open or paid state: read access to certificate file and password file Java Memory Settings --------------------- +~~~~~~~~~~~~~~~~~~~~ If you are signing large amounts of reports at the same time, or if you have a lower worker memory size than the JVM defaults, you may need to tune the JVM @@ -66,10 +88,6 @@ when signing date is important, for example, when signing customer invoices. You can try the signing with the demo report that is included for customers called "Test PDF certificate". -.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas - :alt: Try me on Runbot - :target: https://runbot.odoo-community.org/runbot/143/10.0 - Known issues / Roadmap ====================== @@ -79,50 +97,63 @@ Known issues / Roadmap * To have a visible signature through an image embedded in the resulting PDF. * Add tests. - 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 `here `_. +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 +~~~~~~~ + +* Tecnativa + +Contributors +~~~~~~~~~~~~ + +* `Tecnativa `_: + + * Rafael Blasco + * Antonio Espinosa + * Pedro M. Baeza + * Jairo Llopis + * David Vidal + +Other credits +~~~~~~~~~~~~~ + External utilities ------------------- +++++++++++++++++++ * iText v1.4.8: © 2000-2006, Paulo Soares, Bruno Lowagie and others - License `MPL `__ or `LGPL2 `__ - http://sourceforge.net/projects/itext * jPdfSign: © 2006 Jan Peter Stotz - License `MPL `__ or `LGPL2 `__ (inherited from iText) - http://private.sit.fraunhofer.de/~stotz/software/jpdfsign * Modified jPdfSign: © 2015 Antonio Espinosa - License `MPL `__ or `LGPL2 `__ (inherited from iText) - static/src/java/JPdfSign.java Icon ----- +++++ `Created by Anton Noskov from the Noun Project `__ -Contributors ------------- - -* Rafael Blasco -* Antonio Espinosa -* Pedro M. Baeza -* Jairo Llopis +Maintainers +~~~~~~~~~~~ -Maintainer ----------- +This module is maintained by the OCA. .. image:: https://odoo-community.org/logo.png :alt: Odoo Community Association :target: https://odoo-community.org -This module is maintained by the OCA. - 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. -To contribute to this module, please visit https://odoo-community.org. +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_signer/__init__.py b/report_qweb_signer/__init__.py index a77a6fcb..83e553ac 100644 --- a/report_qweb_signer/__init__.py +++ b/report_qweb_signer/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from . import models diff --git a/report_qweb_signer/__manifest__.py b/report_qweb_signer/__manifest__.py index 50fcaf4e..6a4cae94 100644 --- a/report_qweb_signer/__manifest__.py +++ b/report_qweb_signer/__manifest__.py @@ -1,25 +1,26 @@ -# -*- coding: utf-8 -*- # Copyright 2015 Tecnativa - Antonio Espinosa # Copyright 2017 Tecnativa - Pedro M. Baeza +# Copyright 2018 Tecnativa - David Vidal # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). { "name": "Qweb PDF reports signer", "summary": "Sign Qweb PDFs usign a PKCS#12 certificate", - "version": "10.0.1.0.1", + "version": "12.0.1.0.0", "category": "Reporting", - "website": "https://www.tecnativa.com", + "website": "https://www.github.com/reporting-engine", "author": "Tecnativa, " "Odoo Community Association (OCA)", "license": "AGPL-3", "installable": True, "depends": [ - "report", + "web", ], "external_dependencies": { "bin": ['/usr/bin/java'], }, "data": [ + "data/defaults.xml", "security/ir.model.access.csv", "views/report_certificate_view.xml", "views/res_company_view.xml", diff --git a/report_qweb_signer/data/defaults.xml b/report_qweb_signer/data/defaults.xml new file mode 100644 index 00000000..90bb23af --- /dev/null +++ b/report_qweb_signer/data/defaults.xml @@ -0,0 +1,7 @@ + + + + report_qweb_signer.java_parameters + -Xms4M -Xmx4M + + diff --git a/report_qweb_signer/demo/report_partner_demo.xml b/report_qweb_signer/demo/report_partner_demo.xml index 01744c9a..0861fb43 100644 --- a/report_qweb_signer/demo/report_partner_demo.xml +++ b/report_qweb_signer/demo/report_partner_demo.xml @@ -7,7 +7,7 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).