From 8d88afaedeaabf720272747f2657b5b74d5edacf Mon Sep 17 00:00:00 2001 From: Rod Schouteden Date: Thu, 16 Aug 2018 17:55:26 +0200 Subject: [PATCH] [MIG] report_qweb_pdf_watermark: Migration to 11.0 --- report_qweb_pdf_watermark/README.rst | 5 +- report_qweb_pdf_watermark/__init__.py | 2 +- report_qweb_pdf_watermark/__manifest__.py | 17 +++-- report_qweb_pdf_watermark/demo/report.xml | 8 +-- report_qweb_pdf_watermark/i18n/ca.po | 10 +-- report_qweb_pdf_watermark/i18n/da.po | 10 +-- report_qweb_pdf_watermark/i18n/de.po | 15 ++-- report_qweb_pdf_watermark/i18n/el_GR.po | 13 ++-- report_qweb_pdf_watermark/i18n/es.po | 15 ++-- report_qweb_pdf_watermark/i18n/es_CO.po | 13 ++-- report_qweb_pdf_watermark/i18n/fr.po | 12 ++-- report_qweb_pdf_watermark/i18n/gl.po | 10 +-- report_qweb_pdf_watermark/i18n/hr.po | 36 +++++----- report_qweb_pdf_watermark/i18n/hr_HR.po | 18 +++-- report_qweb_pdf_watermark/i18n/it.po | 12 ++-- report_qweb_pdf_watermark/i18n/nb_NO.po | 13 ++-- report_qweb_pdf_watermark/i18n/nl_NL.po | 15 ++-- report_qweb_pdf_watermark/i18n/pl.po | 13 ++-- report_qweb_pdf_watermark/i18n/pt.po | 10 +-- report_qweb_pdf_watermark/i18n/pt_BR.po | 13 ++-- report_qweb_pdf_watermark/i18n/pt_PT.po | 15 ++-- report_qweb_pdf_watermark/i18n/sl.po | 13 ++-- report_qweb_pdf_watermark/i18n/tr.po | 12 ++-- report_qweb_pdf_watermark/i18n/tr_TR.po | 13 ++-- report_qweb_pdf_watermark/models/__init__.py | 2 - .../models/ir_actions_report_xml.py | 14 ---- report_qweb_pdf_watermark/models/report.py | 69 ++++++++++++------- report_qweb_pdf_watermark/tests/__init__.py | 1 - .../tests/test_report_qweb_pdf_watermark.py | 11 ++- .../views/ir_actions_report_xml.xml | 2 +- .../views/layout_templates.xml | 2 +- 31 files changed, 204 insertions(+), 210 deletions(-) delete mode 100644 report_qweb_pdf_watermark/models/ir_actions_report_xml.py diff --git a/report_qweb_pdf_watermark/README.rst b/report_qweb_pdf_watermark/README.rst index 07f681b1..16c8a95d 100644 --- a/report_qweb_pdf_watermark/README.rst +++ b/report_qweb_pdf_watermark/README.rst @@ -11,7 +11,9 @@ This module was written to add watermarks (backgrounds) to PDF reports. Because Installation ============ -This module works out of the box, but is faster if you install the python library PyPDF2. +As PyPDF is not supported in python3, you need to install PyPDF2:: + +$ pip install pypdf2 Usage ===== @@ -51,6 +53,7 @@ Contributors * Holger Brunn * Stefan Rijnhart +* Rod Schouteden Do not contact contributors directly about help with questions or problems concerning this addon, but use the `community mailing list `_ or the `appropriate specialized mailinglist `_ for help, and the bug tracker linked in `Bug Tracker`_ above for technical issues. diff --git a/report_qweb_pdf_watermark/__init__.py b/report_qweb_pdf_watermark/__init__.py index 7eda98a2..5c170507 100644 --- a/report_qweb_pdf_watermark/__init__.py +++ b/report_qweb_pdf_watermark/__init__.py @@ -1,4 +1,4 @@ -# -*- coding: utf-8 -*- # © 2016 Therp BV # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + from . import models diff --git a/report_qweb_pdf_watermark/__manifest__.py b/report_qweb_pdf_watermark/__manifest__.py index f4ca0611..74b5ad78 100644 --- a/report_qweb_pdf_watermark/__manifest__.py +++ b/report_qweb_pdf_watermark/__manifest__.py @@ -1,20 +1,29 @@ -# -*- coding: utf-8 -*- # © 2016 Therp BV # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). { "name": "Pdf watermark", - "version": "10.0.1.0.2", + "version": "11.0.1.0.0", "author": "Therp BV, " "Odoo Community Association (OCA)", "license": "AGPL-3", - "category": "Reporting", + "category": "Technical Settings", "summary": "Add watermarks to your QWEB PDF reports", + "website": "https://github.com/oca/reporting-engine", "depends": [ - 'report', + 'web', ], "data": [ "demo/report.xml", "views/ir_actions_report_xml.xml", "views/layout_templates.xml", ], + "demo": [ + "demo/report.xml" + ], + "intallable": True, + 'external_dependencies': { + 'python': [ + 'PyPDF2', + ], + }, } diff --git a/report_qweb_pdf_watermark/demo/report.xml b/report_qweb_pdf_watermark/demo/report.xml index 7528dbf9..1e07ba61 100644 --- a/report_qweb_pdf_watermark/demo/report.xml +++ b/report_qweb_pdf_watermark/demo/report.xml @@ -7,14 +7,14 @@ report_type="qweb-pdf" name="report_qweb_pdf_watermark.demo_report_view" file="report_qweb_pdf_watermark.demo_report_view" - paperformat="report.paperformat_euro" + paperformat="base.paperformat_euro" /> - + docs[:1].company_id.logo