From f472fa8df9e74574a595e1c3fe99a6b04705b62b Mon Sep 17 00:00:00 2001 From: Maksym Yankin Date: Wed, 26 Jan 2022 14:09:55 +0200 Subject: [PATCH] [MIG] report_wkhtmltopdf_param: Migration to 15.0 --- report_wkhtmltopdf_param/README.rst | 10 +++++----- report_wkhtmltopdf_param/__manifest__.py | 2 +- .../i18n/report_wkhtmltopdf_param.pot | 8 +------- report_wkhtmltopdf_param/models/report_paperformat.py | 3 +-- report_wkhtmltopdf_param/static/description/index.html | 6 +++--- 5 files changed, 11 insertions(+), 18 deletions(-) diff --git a/report_wkhtmltopdf_param/README.rst b/report_wkhtmltopdf_param/README.rst index 5495b966b..70a8b082e 100644 --- a/report_wkhtmltopdf_param/README.rst +++ b/report_wkhtmltopdf_param/README.rst @@ -14,13 +14,13 @@ Report Wkhtmltopdf Param :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/14.0/report_wkhtmltopdf_param + :target: https://github.com/OCA/reporting-engine/tree/15.0/report_wkhtmltopdf_param :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-14-0/reporting-engine-14-0-report_wkhtmltopdf_param + :target: https://translation.odoo-community.org/projects/reporting-engine-15-0/reporting-engine-15-0-report_wkhtmltopdf_param :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/14.0 + :target: https://runbot.odoo-community.org/runbot/143/15.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| @@ -54,7 +54,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 smashing it by providing a detailed and welcomed -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -88,6 +88,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_wkhtmltopdf_param/__manifest__.py b/report_wkhtmltopdf_param/__manifest__.py index 728868820..0f59f3bd1 100644 --- a/report_wkhtmltopdf_param/__manifest__.py +++ b/report_wkhtmltopdf_param/__manifest__.py @@ -4,7 +4,7 @@ # noinspection PyStatementEffect { "name": "Report Wkhtmltopdf Param", - "version": "14.0.1.0.0", + "version": "15.0.1.0.0", "license": "AGPL-3", "summary": """ Add new parameters for a paper format to be used by wkhtmltopdf diff --git a/report_wkhtmltopdf_param/i18n/report_wkhtmltopdf_param.pot b/report_wkhtmltopdf_param/i18n/report_wkhtmltopdf_param.pot index 470572b34..96cc3b897 100644 --- a/report_wkhtmltopdf_param/i18n/report_wkhtmltopdf_param.pot +++ b/report_wkhtmltopdf_param/i18n/report_wkhtmltopdf_param.pot @@ -4,7 +4,7 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 14.0\n" +"Project-Id-Version: Odoo Server 15.0\n" "Report-Msgid-Bugs-To: \n" "Last-Translator: \n" "Language-Team: \n" @@ -34,8 +34,6 @@ msgid "Custom Parameters passed forward as wkhtmltopdf command arguments" msgstr "" #. module: report_wkhtmltopdf_param -#: model:ir.model.fields,field_description:report_wkhtmltopdf_param.field_ir_actions_report__display_name -#: model:ir.model.fields,field_description:report_wkhtmltopdf_param.field_report_paperformat__display_name #: model:ir.model.fields,field_description:report_wkhtmltopdf_param.field_report_paperformat_parameter__display_name msgid "Display Name" msgstr "" @@ -47,15 +45,11 @@ msgid "Failed to create a PDF using the provided parameters." msgstr "" #. module: report_wkhtmltopdf_param -#: model:ir.model.fields,field_description:report_wkhtmltopdf_param.field_ir_actions_report__id -#: model:ir.model.fields,field_description:report_wkhtmltopdf_param.field_report_paperformat__id #: model:ir.model.fields,field_description:report_wkhtmltopdf_param.field_report_paperformat_parameter__id msgid "ID" msgstr "" #. module: report_wkhtmltopdf_param -#: model:ir.model.fields,field_description:report_wkhtmltopdf_param.field_ir_actions_report____last_update -#: model:ir.model.fields,field_description:report_wkhtmltopdf_param.field_report_paperformat____last_update #: model:ir.model.fields,field_description:report_wkhtmltopdf_param.field_report_paperformat_parameter____last_update msgid "Last Modified on" msgstr "" diff --git a/report_wkhtmltopdf_param/models/report_paperformat.py b/report_wkhtmltopdf_param/models/report_paperformat.py index 4a71edd54..774e9ddb1 100644 --- a/report_wkhtmltopdf_param/models/report_paperformat.py +++ b/report_wkhtmltopdf_param/models/report_paperformat.py @@ -33,11 +33,10 @@ class Paper(models.Model): """ - contenthtml = [bytes(sample_html, "utf-8")] report = self.env["ir.actions.report"].new( {"paperformat_id": paperformat.id} ) - content = report._run_wkhtmltopdf(contenthtml) + content = report._run_wkhtmltopdf(sample_html) if not content: raise ValidationError( _("Failed to create a PDF using the provided parameters.") diff --git a/report_wkhtmltopdf_param/static/description/index.html b/report_wkhtmltopdf_param/static/description/index.html index d75a3d52a..149843038 100644 --- a/report_wkhtmltopdf_param/static/description/index.html +++ b/report_wkhtmltopdf_param/static/description/index.html @@ -367,7 +367,7 @@ ul.auto-toc { !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

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

+

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

This module allows you to add new parameters for a paper format which are then forwarded to wkhtmltopdf command as arguments. To display the arguments that wkhtmltopdf accepts go to your command line and type ‘wkhtmltopdf -H’.

@@ -403,7 +403,7 @@ add prefix – or -) and value.

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.

+feedback.

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

@@ -431,7 +431,7 @@ If you spotted it first, help us smashing it by providing a detailed and welcome

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.