diff --git a/report_qweb_pdf_watermark/README.rst b/report_qweb_pdf_watermark/README.rst new file mode 100644 index 0000000000..a44a4786aa --- /dev/null +++ b/report_qweb_pdf_watermark/README.rst @@ -0,0 +1,164 @@ +============= +Pdf watermark +============= + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:2940fdc81ee124d4fef7eef00d6394463dddb5177a4996e6c5ffcb6a19b5734e + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png + :target: https://odoo-community.org/page/development-status + :alt: Production/Stable +.. |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/17.0/report_qweb_pdf_watermark + :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-17-0/reporting-engine-17-0-report_qweb_pdf_watermark + :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=17.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module was written to add watermarks (backgrounds) to PDF reports. +Because of the way wkhtmltopdf handles headers and footers in the +current versions, it is quite impossible to have a background for the +complete page using HTML and CSS. That is why this module inserts the +image at the PDF level. + +**Table of contents** + +.. contents:: + :local: + +Installation +============ + +As PyPDF is not supported in python3, you need to install PyPDF2: + +:: + + $ pip install pypdf2 + +Usage +===== + +To use this module, you need to: + +1. go to your report +2. select a PDF or image to use as watermark. Note that resolutions and + size must match, otherwise you'll have funny results +3. You can also fill in an expression that returns the data (base64 + encoded) to be used as watermark + +To use the Company watermark, you need to: + +1. go to settings --> company --> update info +2. upload an pdf watermark +3. go to settings --> technical --> reporting --> reports +4. Select the report where you want to use it. +5. On the 'Advanced Properties' tab of the notebook check 'use company + watermark' + +### Demo And demo report is available (if you have demo data installed) +on the users form view. + +1. go to Configuration --> users +2. Select an users +3. Click the print button --> Watermark Demo report. + +Known issues / Roadmap +====================== + +This module depends on support for transparent backgrounds in +Wkhtmltopdf, which has been flaky in the past. This module has been +reported to work with Wkhtmltopdf 0.12.4. + +Changelog +========= + +12.0.1.0.0 (2019-11-18) +----------------------- + +- [MIG] Migration to V12. + +13.0.1.0.0 (2021-01-27) +----------------------- + +- [MIG] Migration to V13. + +14.0.1.0.0 (2021-01-29) +----------------------- + +- [MIG] Migration to V14. + +15.0.1.0.0 (2022-01-11) +----------------------- + +- [MIG] Migration to V15. +- Define pdf watermark in company settings + +16.0.1.0.0 (2023-03-13) +----------------------- + +- [MIG] Migration to V16. + +17.0.1.0.0 (2024-01-12) +----------------------- + +- [MIG] Migration to V17. + +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 `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +------- + +* Therp BV + +Contributors +------------ + +- Holger Brunn +- Stefan Rijnhart +- Rod Schouteden +- Robin Goots +- Foram Shah +- Emiel van Bokhoven +- Sander Lienaerts +- Anjeel Haria + +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. + +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_watermark/__init__.py b/report_qweb_pdf_watermark/__init__.py new file mode 100644 index 0000000000..5c170507d8 --- /dev/null +++ b/report_qweb_pdf_watermark/__init__.py @@ -0,0 +1,4 @@ +# © 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 new file mode 100644 index 0000000000..4c40df09d3 --- /dev/null +++ b/report_qweb_pdf_watermark/__manifest__.py @@ -0,0 +1,24 @@ +# © 2016 Therp BV +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +{ + "name": "Pdf watermark", + "version": "17.0.1.0.0", + "author": "Therp BV, " "Odoo Community Association (OCA)", + "license": "AGPL-3", + "category": "Technical Settings", + "development_status": "Production/Stable", + "summary": "Add watermarks to your QWEB PDF reports", + "website": "https://github.com/OCA/reporting-engine", + "depends": ["web"], + "data": [ + "views/ir_actions_report_xml.xml", + "views/res_company.xml", + ], + "assets": { + "web.report_assets_pdf": [ + "/report_qweb_pdf_watermark/static/src/css/report_qweb_pdf_watermark.css" + ], + }, + "demo": ["demo/report.xml"], + "installable": True, +} diff --git a/report_qweb_pdf_watermark/demo/report.xml b/report_qweb_pdf_watermark/demo/report.xml new file mode 100644 index 0000000000..9e58bd395a --- /dev/null +++ b/report_qweb_pdf_watermark/demo/report.xml @@ -0,0 +1,27 @@ + + + + Watermark Demo report + res.users + qweb-pdf + report_qweb_pdf_watermark.demo_report_view + report_qweb_pdf_watermark.demo_report_view + + docs[:1].company_id.logo + + report + + + diff --git a/report_qweb_pdf_watermark/i18n/ca.po b/report_qweb_pdf_watermark/i18n/ca.po new file mode 100644 index 0000000000..c48d2ec762 --- /dev/null +++ b/report_qweb_pdf_watermark/i18n/ca.po @@ -0,0 +1,75 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * report_qweb_pdf_watermark +# +# Translators: +# Carles Antoli , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-01-10 03:40+0000\n" +"PO-Revision-Date: 2017-01-10 03:40+0000\n" +"Last-Translator: Carles Antoli , 2017\n" +"Language-Team: Catalan (https://www.transifex.com/oca/teams/23907/ca/)\n" +"Language: ca\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,help:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark_expression +msgid "" +"An expression yielding the base64 encoded data to be used as watermark. \n" +"You have access to variables `env` and `docs`" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model,name:report_qweb_pdf_watermark.model_res_company +msgid "Companies" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model,name:report_qweb_pdf_watermark.model_ir_actions_report +#, fuzzy +msgid "Report Action" +msgstr "Informe" + +#. module: report_qweb_pdf_watermark +#: model_terms:ir.ui.view,arch_db:report_qweb_pdf_watermark.view_company_form +msgid "" +"Upload an pdf file to use as an Company watermark. You need to activate the " +"setting 'use company watermark' on the reports where you want to use it." +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,help:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark +msgid "Upload an pdf file to use as an watermark on this report." +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_ir_actions_report__use_company_watermark +msgid "Use Company Watermark" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,help:report_qweb_pdf_watermark.field_ir_actions_report__use_company_watermark +msgid "Use the pdf watermark defined globally in the company settings." +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_res_company__pdf_watermark +msgid "Watermark" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.actions.report,name:report_qweb_pdf_watermark.demo_report +msgid "Watermark Demo report" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark_expression +msgid "Watermark expression" +msgstr "" diff --git a/report_qweb_pdf_watermark/i18n/da.po b/report_qweb_pdf_watermark/i18n/da.po new file mode 100644 index 0000000000..7b7a3b3bb9 --- /dev/null +++ b/report_qweb_pdf_watermark/i18n/da.po @@ -0,0 +1,75 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * report_qweb_pdf_watermark +# +# Translators: +# Hans Henrik Gabelgaard , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-01-10 03:40+0000\n" +"PO-Revision-Date: 2017-01-10 03:40+0000\n" +"Last-Translator: Hans Henrik Gabelgaard , 2017\n" +"Language-Team: Danish (https://www.transifex.com/oca/teams/23907/da/)\n" +"Language: da\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,help:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark_expression +msgid "" +"An expression yielding the base64 encoded data to be used as watermark. \n" +"You have access to variables `env` and `docs`" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model,name:report_qweb_pdf_watermark.model_res_company +msgid "Companies" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model,name:report_qweb_pdf_watermark.model_ir_actions_report +#, fuzzy +msgid "Report Action" +msgstr "Rapport" + +#. module: report_qweb_pdf_watermark +#: model_terms:ir.ui.view,arch_db:report_qweb_pdf_watermark.view_company_form +msgid "" +"Upload an pdf file to use as an Company watermark. You need to activate the " +"setting 'use company watermark' on the reports where you want to use it." +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,help:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark +msgid "Upload an pdf file to use as an watermark on this report." +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_ir_actions_report__use_company_watermark +msgid "Use Company Watermark" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,help:report_qweb_pdf_watermark.field_ir_actions_report__use_company_watermark +msgid "Use the pdf watermark defined globally in the company settings." +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_res_company__pdf_watermark +msgid "Watermark" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.actions.report,name:report_qweb_pdf_watermark.demo_report +msgid "Watermark Demo report" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark_expression +msgid "Watermark expression" +msgstr "" diff --git a/report_qweb_pdf_watermark/i18n/de.po b/report_qweb_pdf_watermark/i18n/de.po new file mode 100644 index 0000000000..b99cc63179 --- /dev/null +++ b/report_qweb_pdf_watermark/i18n/de.po @@ -0,0 +1,85 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * report_qweb_pdf_watermark +# +# Translators: +# OCA Transbot , 2017 +# Rudolf Schnapka , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-03-04 05:58+0000\n" +"PO-Revision-Date: 2017-03-04 05:58+0000\n" +"Last-Translator: Rudolf Schnapka , 2017\n" +"Language-Team: German (https://www.transifex.com/oca/teams/23907/de/)\n" +"Language: de\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,help:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark_expression +msgid "" +"An expression yielding the base64 encoded data to be used as watermark. \n" +"You have access to variables `env` and `docs`" +msgstr "" +"Ein Ausdruck der base64-geschlüsselte Daten, zur Verwendung als " +"Wasserzeichen, liefert.\n" +"Sie haben die Variablen 'env' und 'docs' zur Verfügung" + +#. module: report_qweb_pdf_watermark +#: model:ir.model,name:report_qweb_pdf_watermark.model_res_company +msgid "Companies" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model,name:report_qweb_pdf_watermark.model_ir_actions_report +#, fuzzy +msgid "Report Action" +msgstr "Bericht" + +#. module: report_qweb_pdf_watermark +#: model_terms:ir.ui.view,arch_db:report_qweb_pdf_watermark.view_company_form +msgid "" +"Upload an pdf file to use as an Company watermark. You need to activate the " +"setting 'use company watermark' on the reports where you want to use it." +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,help:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark +msgid "Upload an pdf file to use as an watermark on this report." +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_ir_actions_report__use_company_watermark +msgid "Use Company Watermark" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,help:report_qweb_pdf_watermark.field_ir_actions_report__use_company_watermark +msgid "Use the pdf watermark defined globally in the company settings." +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_res_company__pdf_watermark +msgid "Watermark" +msgstr "Wasserzeichen" + +#. module: report_qweb_pdf_watermark +#: model:ir.actions.report,name:report_qweb_pdf_watermark.demo_report +msgid "Watermark Demo report" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark_expression +msgid "Watermark expression" +msgstr "Wasserzeichnen-Ausdruck" + +#~ msgid "Demo report" +#~ msgstr "Beispielbericht" + +#~ msgid "ir.actions.report" +#~ msgstr "ir.actions.report" diff --git a/report_qweb_pdf_watermark/i18n/el_GR.po b/report_qweb_pdf_watermark/i18n/el_GR.po new file mode 100644 index 0000000000..dca96ae3a2 --- /dev/null +++ b/report_qweb_pdf_watermark/i18n/el_GR.po @@ -0,0 +1,76 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * report_qweb_pdf_watermark +# +# Translators: +# Kostas Goutoudis , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-01-10 03:40+0000\n" +"PO-Revision-Date: 2017-01-10 03:40+0000\n" +"Last-Translator: Kostas Goutoudis , 2017\n" +"Language-Team: Greek (Greece) (https://www.transifex.com/oca/teams/23907/" +"el_GR/)\n" +"Language: el_GR\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,help:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark_expression +msgid "" +"An expression yielding the base64 encoded data to be used as watermark. \n" +"You have access to variables `env` and `docs`" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model,name:report_qweb_pdf_watermark.model_res_company +msgid "Companies" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model,name:report_qweb_pdf_watermark.model_ir_actions_report +#, fuzzy +msgid "Report Action" +msgstr "Αναφορά" + +#. module: report_qweb_pdf_watermark +#: model_terms:ir.ui.view,arch_db:report_qweb_pdf_watermark.view_company_form +msgid "" +"Upload an pdf file to use as an Company watermark. You need to activate the " +"setting 'use company watermark' on the reports where you want to use it." +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,help:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark +msgid "Upload an pdf file to use as an watermark on this report." +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_ir_actions_report__use_company_watermark +msgid "Use Company Watermark" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,help:report_qweb_pdf_watermark.field_ir_actions_report__use_company_watermark +msgid "Use the pdf watermark defined globally in the company settings." +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_res_company__pdf_watermark +msgid "Watermark" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.actions.report,name:report_qweb_pdf_watermark.demo_report +msgid "Watermark Demo report" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark_expression +msgid "Watermark expression" +msgstr "" diff --git a/report_qweb_pdf_watermark/i18n/es.po b/report_qweb_pdf_watermark/i18n/es.po new file mode 100644 index 0000000000..ba9dd8abdf --- /dev/null +++ b/report_qweb_pdf_watermark/i18n/es.po @@ -0,0 +1,91 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * report_qweb_pdf_watermark +# +# Translators: +# Pedro M. Baeza , 2017 +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-01-10 03:40+0000\n" +"PO-Revision-Date: 2023-09-02 20:42+0000\n" +"Last-Translator: Ivorra78 \n" +"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n" +"Language: es\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 4.17\n" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,help:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark_expression +msgid "" +"An expression yielding the base64 encoded data to be used as watermark. \n" +"You have access to variables `env` and `docs`" +msgstr "" +"Una expresión que obtenga los datos codificados en base64 a ser usada como " +"marca de agua.\n" +"Tiene acceso a las variables `env` y `docs`" + +#. module: report_qweb_pdf_watermark +#: model:ir.model,name:report_qweb_pdf_watermark.model_res_company +msgid "Companies" +msgstr "Compañías" + +#. module: report_qweb_pdf_watermark +#: model:ir.model,name:report_qweb_pdf_watermark.model_ir_actions_report +msgid "Report Action" +msgstr "Informar Acción" + +#. module: report_qweb_pdf_watermark +#: model_terms:ir.ui.view,arch_db:report_qweb_pdf_watermark.view_company_form +msgid "" +"Upload an pdf file to use as an Company watermark. You need to activate the " +"setting 'use company watermark' on the reports where you want to use it." +msgstr "" +"Cargue un archivo pdf para utilizarlo como marca de agua de la compañía. " +"Debe activar la opción \"utilizar marca de agua de la compañía\" en los " +"informes en los que desee utilizarla." + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,help:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark +msgid "Upload an pdf file to use as an watermark on this report." +msgstr "" +"Cargue un archivo pdf para utilizarlo como marca de agua en este informe." + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_ir_actions_report__use_company_watermark +msgid "Use Company Watermark" +msgstr "Utilizar la marca de agua de la compañía" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,help:report_qweb_pdf_watermark.field_ir_actions_report__use_company_watermark +msgid "Use the pdf watermark defined globally in the company settings." +msgstr "" +"Utilice la marca de agua pdf definida globalmente en la configuración de la " +"compañía." + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_res_company__pdf_watermark +msgid "Watermark" +msgstr "Marca de agua" + +#. module: report_qweb_pdf_watermark +#: model:ir.actions.report,name:report_qweb_pdf_watermark.demo_report +msgid "Watermark Demo report" +msgstr "Informe de demostración de marca de agua" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark_expression +msgid "Watermark expression" +msgstr "Expresión para la marca de agua" + +#~ msgid "Demo report" +#~ msgstr "Informe demo" + +#~ msgid "ir.actions.report" +#~ msgstr "ir.actions.report" diff --git a/report_qweb_pdf_watermark/i18n/es_CO.po b/report_qweb_pdf_watermark/i18n/es_CO.po new file mode 100644 index 0000000000..47d77030fa --- /dev/null +++ b/report_qweb_pdf_watermark/i18n/es_CO.po @@ -0,0 +1,76 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * report_qweb_pdf_watermark +# +# Translators: +# John Toro , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-01-10 03:40+0000\n" +"PO-Revision-Date: 2017-01-10 03:40+0000\n" +"Last-Translator: John Toro , 2017\n" +"Language-Team: Spanish (Colombia) (https://www.transifex.com/oca/teams/23907/" +"es_CO/)\n" +"Language: es_CO\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,help:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark_expression +msgid "" +"An expression yielding the base64 encoded data to be used as watermark. \n" +"You have access to variables `env` and `docs`" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model,name:report_qweb_pdf_watermark.model_res_company +msgid "Companies" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model,name:report_qweb_pdf_watermark.model_ir_actions_report +#, fuzzy +msgid "Report Action" +msgstr "Iforme" + +#. module: report_qweb_pdf_watermark +#: model_terms:ir.ui.view,arch_db:report_qweb_pdf_watermark.view_company_form +msgid "" +"Upload an pdf file to use as an Company watermark. You need to activate the " +"setting 'use company watermark' on the reports where you want to use it." +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,help:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark +msgid "Upload an pdf file to use as an watermark on this report." +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_ir_actions_report__use_company_watermark +msgid "Use Company Watermark" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,help:report_qweb_pdf_watermark.field_ir_actions_report__use_company_watermark +msgid "Use the pdf watermark defined globally in the company settings." +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_res_company__pdf_watermark +msgid "Watermark" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.actions.report,name:report_qweb_pdf_watermark.demo_report +msgid "Watermark Demo report" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark_expression +msgid "Watermark expression" +msgstr "" diff --git a/report_qweb_pdf_watermark/i18n/fr.po b/report_qweb_pdf_watermark/i18n/fr.po new file mode 100644 index 0000000000..1f8b8f520b --- /dev/null +++ b/report_qweb_pdf_watermark/i18n/fr.po @@ -0,0 +1,79 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * report_qweb_pdf_watermark +# +# Translators: +# Yannick Vaucher , 2017 +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-01-10 03:40+0000\n" +"PO-Revision-Date: 2017-01-10 03:40+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n" +"Language: fr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,help:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark_expression +msgid "" +"An expression yielding the base64 encoded data to be used as watermark. \n" +"You have access to variables `env` and `docs`" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model,name:report_qweb_pdf_watermark.model_res_company +msgid "Companies" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model,name:report_qweb_pdf_watermark.model_ir_actions_report +#, fuzzy +msgid "Report Action" +msgstr "Rapport" + +#. module: report_qweb_pdf_watermark +#: model_terms:ir.ui.view,arch_db:report_qweb_pdf_watermark.view_company_form +msgid "" +"Upload an pdf file to use as an Company watermark. You need to activate the " +"setting 'use company watermark' on the reports where you want to use it." +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,help:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark +msgid "Upload an pdf file to use as an watermark on this report." +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_ir_actions_report__use_company_watermark +msgid "Use Company Watermark" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,help:report_qweb_pdf_watermark.field_ir_actions_report__use_company_watermark +msgid "Use the pdf watermark defined globally in the company settings." +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_res_company__pdf_watermark +msgid "Watermark" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.actions.report,name:report_qweb_pdf_watermark.demo_report +msgid "Watermark Demo report" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark_expression +msgid "Watermark expression" +msgstr "" + +#~ msgid "ir.actions.report" +#~ msgstr "ir.actions.report" diff --git a/report_qweb_pdf_watermark/i18n/gl.po b/report_qweb_pdf_watermark/i18n/gl.po new file mode 100644 index 0000000000..2373ba42a5 --- /dev/null +++ b/report_qweb_pdf_watermark/i18n/gl.po @@ -0,0 +1,75 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * report_qweb_pdf_watermark +# +# Translators: +# Alejandro Santana , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-01-10 03:40+0000\n" +"PO-Revision-Date: 2017-01-10 03:40+0000\n" +"Last-Translator: Alejandro Santana , 2017\n" +"Language-Team: Galician (https://www.transifex.com/oca/teams/23907/gl/)\n" +"Language: gl\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,help:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark_expression +msgid "" +"An expression yielding the base64 encoded data to be used as watermark. \n" +"You have access to variables `env` and `docs`" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model,name:report_qweb_pdf_watermark.model_res_company +msgid "Companies" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model,name:report_qweb_pdf_watermark.model_ir_actions_report +#, fuzzy +msgid "Report Action" +msgstr "Informe" + +#. module: report_qweb_pdf_watermark +#: model_terms:ir.ui.view,arch_db:report_qweb_pdf_watermark.view_company_form +msgid "" +"Upload an pdf file to use as an Company watermark. You need to activate the " +"setting 'use company watermark' on the reports where you want to use it." +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,help:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark +msgid "Upload an pdf file to use as an watermark on this report." +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_ir_actions_report__use_company_watermark +msgid "Use Company Watermark" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,help:report_qweb_pdf_watermark.field_ir_actions_report__use_company_watermark +msgid "Use the pdf watermark defined globally in the company settings." +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_res_company__pdf_watermark +msgid "Watermark" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.actions.report,name:report_qweb_pdf_watermark.demo_report +msgid "Watermark Demo report" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark_expression +msgid "Watermark expression" +msgstr "" diff --git a/report_qweb_pdf_watermark/i18n/hr.po b/report_qweb_pdf_watermark/i18n/hr.po new file mode 100644 index 0000000000..bb8a1cc164 --- /dev/null +++ b/report_qweb_pdf_watermark/i18n/hr.po @@ -0,0 +1,78 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * report_qweb_pdf_watermark +# +# Translators: +# Bole , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-01-10 03:40+0000\n" +"PO-Revision-Date: 2017-01-10 03:40+0000\n" +"Last-Translator: Bole , 2017\n" +"Language-Team: Croatian (https://www.transifex.com/oca/teams/23907/hr/)\n" +"Language: hr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" +"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,help:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark_expression +msgid "" +"An expression yielding the base64 encoded data to be used as watermark. \n" +"You have access to variables `env` and `docs`" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model,name:report_qweb_pdf_watermark.model_res_company +msgid "Companies" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model,name:report_qweb_pdf_watermark.model_ir_actions_report +msgid "Report Action" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model_terms:ir.ui.view,arch_db:report_qweb_pdf_watermark.view_company_form +msgid "" +"Upload an pdf file to use as an Company watermark. You need to activate the " +"setting 'use company watermark' on the reports where you want to use it." +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,help:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark +msgid "Upload an pdf file to use as an watermark on this report." +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_ir_actions_report__use_company_watermark +msgid "Use Company Watermark" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,help:report_qweb_pdf_watermark.field_ir_actions_report__use_company_watermark +msgid "Use the pdf watermark defined globally in the company settings." +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_res_company__pdf_watermark +msgid "Watermark" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.actions.report,name:report_qweb_pdf_watermark.demo_report +msgid "Watermark Demo report" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark_expression +msgid "Watermark expression" +msgstr "" + +#~ msgid "ir.actions.report" +#~ msgstr "ir.actions.report" diff --git a/report_qweb_pdf_watermark/i18n/hr_HR.po b/report_qweb_pdf_watermark/i18n/hr_HR.po new file mode 100644 index 0000000000..24024e2e9e --- /dev/null +++ b/report_qweb_pdf_watermark/i18n/hr_HR.po @@ -0,0 +1,85 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * report_qweb_pdf_watermark +# +# Translators: +# Bole , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-07-13 02:42+0000\n" +"PO-Revision-Date: 2017-07-13 02:42+0000\n" +"Last-Translator: Bole , 2017\n" +"Language-Team: Croatian (Croatia) (https://www.transifex.com/oca/teams/23907/" +"hr_HR/)\n" +"Language: hr_HR\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" +"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,help:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark_expression +msgid "" +"An expression yielding the base64 encoded data to be used as watermark. \n" +"You have access to variables `env` and `docs`" +msgstr "" +"Izraz koji polučuje base46 kodirane podatke koji se koriste kao vodeni žig.\n" +"Imate pristup varijablama 'env' i 'docs'" + +#. module: report_qweb_pdf_watermark +#: model:ir.model,name:report_qweb_pdf_watermark.model_res_company +msgid "Companies" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model,name:report_qweb_pdf_watermark.model_ir_actions_report +#, fuzzy +msgid "Report Action" +msgstr "Izvještaj" + +#. module: report_qweb_pdf_watermark +#: model_terms:ir.ui.view,arch_db:report_qweb_pdf_watermark.view_company_form +msgid "" +"Upload an pdf file to use as an Company watermark. You need to activate the " +"setting 'use company watermark' on the reports where you want to use it." +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,help:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark +msgid "Upload an pdf file to use as an watermark on this report." +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_ir_actions_report__use_company_watermark +msgid "Use Company Watermark" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,help:report_qweb_pdf_watermark.field_ir_actions_report__use_company_watermark +msgid "Use the pdf watermark defined globally in the company settings." +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_res_company__pdf_watermark +msgid "Watermark" +msgstr "Vodeni žig" + +#. module: report_qweb_pdf_watermark +#: model:ir.actions.report,name:report_qweb_pdf_watermark.demo_report +msgid "Watermark Demo report" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark_expression +msgid "Watermark expression" +msgstr "Izraz vodenog žiga" + +#~ msgid "Demo report" +#~ msgstr "Demo izvještaj" + +#~ msgid "ir.actions.report" +#~ msgstr "ir.actions.report" diff --git a/report_qweb_pdf_watermark/i18n/it.po b/report_qweb_pdf_watermark/i18n/it.po new file mode 100644 index 0000000000..cff42693aa --- /dev/null +++ b/report_qweb_pdf_watermark/i18n/it.po @@ -0,0 +1,79 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * report_qweb_pdf_watermark +# +# Translators: +# Paolo Valier , 2017 +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-01-10 03:40+0000\n" +"PO-Revision-Date: 2017-01-10 03:40+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Italian (https://www.transifex.com/oca/teams/23907/it/)\n" +"Language: it\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,help:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark_expression +msgid "" +"An expression yielding the base64 encoded data to be used as watermark. \n" +"You have access to variables `env` and `docs`" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model,name:report_qweb_pdf_watermark.model_res_company +msgid "Companies" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model,name:report_qweb_pdf_watermark.model_ir_actions_report +#, fuzzy +msgid "Report Action" +msgstr "Report" + +#. module: report_qweb_pdf_watermark +#: model_terms:ir.ui.view,arch_db:report_qweb_pdf_watermark.view_company_form +msgid "" +"Upload an pdf file to use as an Company watermark. You need to activate the " +"setting 'use company watermark' on the reports where you want to use it." +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,help:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark +msgid "Upload an pdf file to use as an watermark on this report." +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_ir_actions_report__use_company_watermark +msgid "Use Company Watermark" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,help:report_qweb_pdf_watermark.field_ir_actions_report__use_company_watermark +msgid "Use the pdf watermark defined globally in the company settings." +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_res_company__pdf_watermark +msgid "Watermark" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.actions.report,name:report_qweb_pdf_watermark.demo_report +msgid "Watermark Demo report" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark_expression +msgid "Watermark expression" +msgstr "" + +#~ msgid "ir.actions.report" +#~ msgstr "ir.actions.report" diff --git a/report_qweb_pdf_watermark/i18n/nb_NO.po b/report_qweb_pdf_watermark/i18n/nb_NO.po new file mode 100644 index 0000000000..56408c1cd4 --- /dev/null +++ b/report_qweb_pdf_watermark/i18n/nb_NO.po @@ -0,0 +1,76 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * report_qweb_pdf_watermark +# +# Translators: +# Imre Kristoffer Eilertsen , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-01-10 03:40+0000\n" +"PO-Revision-Date: 2017-01-10 03:40+0000\n" +"Last-Translator: Imre Kristoffer Eilertsen , 2017\n" +"Language-Team: Norwegian Bokmål (Norway) (https://www.transifex.com/oca/" +"teams/23907/nb_NO/)\n" +"Language: nb_NO\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,help:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark_expression +msgid "" +"An expression yielding the base64 encoded data to be used as watermark. \n" +"You have access to variables `env` and `docs`" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model,name:report_qweb_pdf_watermark.model_res_company +msgid "Companies" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model,name:report_qweb_pdf_watermark.model_ir_actions_report +#, fuzzy +msgid "Report Action" +msgstr "Rapport" + +#. module: report_qweb_pdf_watermark +#: model_terms:ir.ui.view,arch_db:report_qweb_pdf_watermark.view_company_form +msgid "" +"Upload an pdf file to use as an Company watermark. You need to activate the " +"setting 'use company watermark' on the reports where you want to use it." +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,help:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark +msgid "Upload an pdf file to use as an watermark on this report." +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_ir_actions_report__use_company_watermark +msgid "Use Company Watermark" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,help:report_qweb_pdf_watermark.field_ir_actions_report__use_company_watermark +msgid "Use the pdf watermark defined globally in the company settings." +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_res_company__pdf_watermark +msgid "Watermark" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.actions.report,name:report_qweb_pdf_watermark.demo_report +msgid "Watermark Demo report" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark_expression +msgid "Watermark expression" +msgstr "" diff --git a/report_qweb_pdf_watermark/i18n/nl_NL.po b/report_qweb_pdf_watermark/i18n/nl_NL.po new file mode 100644 index 0000000000..9efefc5d9e --- /dev/null +++ b/report_qweb_pdf_watermark/i18n/nl_NL.po @@ -0,0 +1,79 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * report_qweb_pdf_watermark +# +# Translators: +# Peter Hageman , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-06-23 00:28+0000\n" +"PO-Revision-Date: 2017-06-23 00:28+0000\n" +"Last-Translator: Peter Hageman , 2017\n" +"Language-Team: Dutch (Netherlands) (https://www.transifex.com/oca/" +"teams/23907/nl_NL/)\n" +"Language: nl_NL\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,help:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark_expression +msgid "" +"An expression yielding the base64 encoded data to be used as watermark. \n" +"You have access to variables `env` and `docs`" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model,name:report_qweb_pdf_watermark.model_res_company +msgid "Companies" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model,name:report_qweb_pdf_watermark.model_ir_actions_report +#, fuzzy +msgid "Report Action" +msgstr "Rapport" + +#. module: report_qweb_pdf_watermark +#: model_terms:ir.ui.view,arch_db:report_qweb_pdf_watermark.view_company_form +msgid "" +"Upload an pdf file to use as an Company watermark. You need to activate the " +"setting 'use company watermark' on the reports where you want to use it." +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,help:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark +msgid "Upload an pdf file to use as an watermark on this report." +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_ir_actions_report__use_company_watermark +msgid "Use Company Watermark" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,help:report_qweb_pdf_watermark.field_ir_actions_report__use_company_watermark +msgid "Use the pdf watermark defined globally in the company settings." +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_res_company__pdf_watermark +msgid "Watermark" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.actions.report,name:report_qweb_pdf_watermark.demo_report +msgid "Watermark Demo report" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark_expression +msgid "Watermark expression" +msgstr "" + +#~ msgid "ir.actions.report" +#~ msgstr "ir.actions.report" diff --git a/report_qweb_pdf_watermark/i18n/pl.po b/report_qweb_pdf_watermark/i18n/pl.po new file mode 100644 index 0000000000..9b8fa07b75 --- /dev/null +++ b/report_qweb_pdf_watermark/i18n/pl.po @@ -0,0 +1,76 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * report_qweb_pdf_watermark +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-01-10 03:40+0000\n" +"PO-Revision-Date: 2017-01-10 03:40+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Polish (https://www.transifex.com/oca/teams/23907/pl/)\n" +"Language: pl\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " +"|| n%100>=20) ? 1 : 2);\n" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,help:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark_expression +msgid "" +"An expression yielding the base64 encoded data to be used as watermark. \n" +"You have access to variables `env` and `docs`" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model,name:report_qweb_pdf_watermark.model_res_company +msgid "Companies" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model,name:report_qweb_pdf_watermark.model_ir_actions_report +#, fuzzy +msgid "Report Action" +msgstr "Raport" + +#. module: report_qweb_pdf_watermark +#: model_terms:ir.ui.view,arch_db:report_qweb_pdf_watermark.view_company_form +msgid "" +"Upload an pdf file to use as an Company watermark. You need to activate the " +"setting 'use company watermark' on the reports where you want to use it." +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,help:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark +msgid "Upload an pdf file to use as an watermark on this report." +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_ir_actions_report__use_company_watermark +msgid "Use Company Watermark" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,help:report_qweb_pdf_watermark.field_ir_actions_report__use_company_watermark +msgid "Use the pdf watermark defined globally in the company settings." +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_res_company__pdf_watermark +msgid "Watermark" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.actions.report,name:report_qweb_pdf_watermark.demo_report +msgid "Watermark Demo report" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark_expression +msgid "Watermark expression" +msgstr "" diff --git a/report_qweb_pdf_watermark/i18n/pt.po b/report_qweb_pdf_watermark/i18n/pt.po new file mode 100644 index 0000000000..6b76e599a4 --- /dev/null +++ b/report_qweb_pdf_watermark/i18n/pt.po @@ -0,0 +1,75 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * report_qweb_pdf_watermark +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-01-10 03:40+0000\n" +"PO-Revision-Date: 2017-01-10 03:40+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Portuguese (https://www.transifex.com/oca/teams/23907/pt/)\n" +"Language: pt\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,help:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark_expression +msgid "" +"An expression yielding the base64 encoded data to be used as watermark. \n" +"You have access to variables `env` and `docs`" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model,name:report_qweb_pdf_watermark.model_res_company +msgid "Companies" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model,name:report_qweb_pdf_watermark.model_ir_actions_report +#, fuzzy +msgid "Report Action" +msgstr "Relatório" + +#. module: report_qweb_pdf_watermark +#: model_terms:ir.ui.view,arch_db:report_qweb_pdf_watermark.view_company_form +msgid "" +"Upload an pdf file to use as an Company watermark. You need to activate the " +"setting 'use company watermark' on the reports where you want to use it." +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,help:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark +msgid "Upload an pdf file to use as an watermark on this report." +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_ir_actions_report__use_company_watermark +msgid "Use Company Watermark" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,help:report_qweb_pdf_watermark.field_ir_actions_report__use_company_watermark +msgid "Use the pdf watermark defined globally in the company settings." +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_res_company__pdf_watermark +msgid "Watermark" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.actions.report,name:report_qweb_pdf_watermark.demo_report +msgid "Watermark Demo report" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark_expression +msgid "Watermark expression" +msgstr "" diff --git a/report_qweb_pdf_watermark/i18n/pt_BR.po b/report_qweb_pdf_watermark/i18n/pt_BR.po new file mode 100644 index 0000000000..4d87d8bf16 --- /dev/null +++ b/report_qweb_pdf_watermark/i18n/pt_BR.po @@ -0,0 +1,76 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * report_qweb_pdf_watermark +# +# Translators: +# Armando Vulcano Junior , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-01-10 03:40+0000\n" +"PO-Revision-Date: 2017-01-10 03:40+0000\n" +"Last-Translator: Armando Vulcano Junior , 2017\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/oca/" +"teams/23907/pt_BR/)\n" +"Language: pt_BR\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,help:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark_expression +msgid "" +"An expression yielding the base64 encoded data to be used as watermark. \n" +"You have access to variables `env` and `docs`" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model,name:report_qweb_pdf_watermark.model_res_company +msgid "Companies" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model,name:report_qweb_pdf_watermark.model_ir_actions_report +#, fuzzy +msgid "Report Action" +msgstr "Relatório" + +#. module: report_qweb_pdf_watermark +#: model_terms:ir.ui.view,arch_db:report_qweb_pdf_watermark.view_company_form +msgid "" +"Upload an pdf file to use as an Company watermark. You need to activate the " +"setting 'use company watermark' on the reports where you want to use it." +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,help:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark +msgid "Upload an pdf file to use as an watermark on this report." +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_ir_actions_report__use_company_watermark +msgid "Use Company Watermark" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,help:report_qweb_pdf_watermark.field_ir_actions_report__use_company_watermark +msgid "Use the pdf watermark defined globally in the company settings." +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_res_company__pdf_watermark +msgid "Watermark" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.actions.report,name:report_qweb_pdf_watermark.demo_report +msgid "Watermark Demo report" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark_expression +msgid "Watermark expression" +msgstr "" diff --git a/report_qweb_pdf_watermark/i18n/pt_PT.po b/report_qweb_pdf_watermark/i18n/pt_PT.po new file mode 100644 index 0000000000..c96f0aea60 --- /dev/null +++ b/report_qweb_pdf_watermark/i18n/pt_PT.po @@ -0,0 +1,80 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * report_qweb_pdf_watermark +# +# Translators: +# OCA Transbot , 2017 +# Carla Berjano , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-01-14 06:07+0000\n" +"PO-Revision-Date: 2017-01-14 06:07+0000\n" +"Last-Translator: Carla Berjano , 2017\n" +"Language-Team: Portuguese (Portugal) (https://www.transifex.com/oca/" +"teams/23907/pt_PT/)\n" +"Language: pt_PT\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,help:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark_expression +msgid "" +"An expression yielding the base64 encoded data to be used as watermark. \n" +"You have access to variables `env` and `docs`" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model,name:report_qweb_pdf_watermark.model_res_company +msgid "Companies" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model,name:report_qweb_pdf_watermark.model_ir_actions_report +#, fuzzy +msgid "Report Action" +msgstr "Relatório" + +#. module: report_qweb_pdf_watermark +#: model_terms:ir.ui.view,arch_db:report_qweb_pdf_watermark.view_company_form +msgid "" +"Upload an pdf file to use as an Company watermark. You need to activate the " +"setting 'use company watermark' on the reports where you want to use it." +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,help:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark +msgid "Upload an pdf file to use as an watermark on this report." +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_ir_actions_report__use_company_watermark +msgid "Use Company Watermark" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,help:report_qweb_pdf_watermark.field_ir_actions_report__use_company_watermark +msgid "Use the pdf watermark defined globally in the company settings." +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_res_company__pdf_watermark +msgid "Watermark" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.actions.report,name:report_qweb_pdf_watermark.demo_report +msgid "Watermark Demo report" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark_expression +msgid "Watermark expression" +msgstr "" + +#~ msgid "ir.actions.report" +#~ msgstr "ir.actions.report" diff --git a/report_qweb_pdf_watermark/i18n/report_qweb_pdf_watermark.pot b/report_qweb_pdf_watermark/i18n/report_qweb_pdf_watermark.pot new file mode 100644 index 0000000000..fdf632e4d2 --- /dev/null +++ b/report_qweb_pdf_watermark/i18n/report_qweb_pdf_watermark.pot @@ -0,0 +1,69 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * report_qweb_pdf_watermark +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,help:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark_expression +msgid "" +"An expression yielding the base64 encoded data to be used as watermark. \n" +"You have access to variables `env` and `docs`" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model,name:report_qweb_pdf_watermark.model_res_company +msgid "Companies" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model,name:report_qweb_pdf_watermark.model_ir_actions_report +msgid "Report Action" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model_terms:ir.ui.view,arch_db:report_qweb_pdf_watermark.view_company_form +msgid "" +"Upload an pdf file to use as an Company watermark. You need to activate the " +"setting 'use company watermark' on the reports where you want to use it." +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,help:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark +msgid "Upload an pdf file to use as an watermark on this report." +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_ir_actions_report__use_company_watermark +msgid "Use Company Watermark" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,help:report_qweb_pdf_watermark.field_ir_actions_report__use_company_watermark +msgid "Use the pdf watermark defined globally in the company settings." +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_res_company__pdf_watermark +msgid "Watermark" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.actions.report,name:report_qweb_pdf_watermark.demo_report +msgid "Watermark Demo report" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark_expression +msgid "Watermark expression" +msgstr "" diff --git a/report_qweb_pdf_watermark/i18n/sl.po b/report_qweb_pdf_watermark/i18n/sl.po new file mode 100644 index 0000000000..149c2034d0 --- /dev/null +++ b/report_qweb_pdf_watermark/i18n/sl.po @@ -0,0 +1,76 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * report_qweb_pdf_watermark +# +# Translators: +# Matjaž Mozetič , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-01-10 03:40+0000\n" +"PO-Revision-Date: 2017-01-10 03:40+0000\n" +"Last-Translator: Matjaž Mozetič , 2017\n" +"Language-Team: Slovenian (https://www.transifex.com/oca/teams/23907/sl/)\n" +"Language: sl\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n" +"%100==4 ? 2 : 3);\n" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,help:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark_expression +msgid "" +"An expression yielding the base64 encoded data to be used as watermark. \n" +"You have access to variables `env` and `docs`" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model,name:report_qweb_pdf_watermark.model_res_company +msgid "Companies" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model,name:report_qweb_pdf_watermark.model_ir_actions_report +#, fuzzy +msgid "Report Action" +msgstr "Poročilo" + +#. module: report_qweb_pdf_watermark +#: model_terms:ir.ui.view,arch_db:report_qweb_pdf_watermark.view_company_form +msgid "" +"Upload an pdf file to use as an Company watermark. You need to activate the " +"setting 'use company watermark' on the reports where you want to use it." +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,help:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark +msgid "Upload an pdf file to use as an watermark on this report." +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_ir_actions_report__use_company_watermark +msgid "Use Company Watermark" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,help:report_qweb_pdf_watermark.field_ir_actions_report__use_company_watermark +msgid "Use the pdf watermark defined globally in the company settings." +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_res_company__pdf_watermark +msgid "Watermark" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.actions.report,name:report_qweb_pdf_watermark.demo_report +msgid "Watermark Demo report" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark_expression +msgid "Watermark expression" +msgstr "" diff --git a/report_qweb_pdf_watermark/i18n/tr.po b/report_qweb_pdf_watermark/i18n/tr.po new file mode 100644 index 0000000000..099d2fd63f --- /dev/null +++ b/report_qweb_pdf_watermark/i18n/tr.po @@ -0,0 +1,77 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * report_qweb_pdf_watermark +# +# Translators: +# Ahmet Altinisik , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-01-10 03:40+0000\n" +"PO-Revision-Date: 2017-01-10 03:40+0000\n" +"Last-Translator: Ahmet Altinisik , 2017\n" +"Language-Team: Turkish (https://www.transifex.com/oca/teams/23907/tr/)\n" +"Language: tr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,help:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark_expression +msgid "" +"An expression yielding the base64 encoded data to be used as watermark. \n" +"You have access to variables `env` and `docs`" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model,name:report_qweb_pdf_watermark.model_res_company +msgid "Companies" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model,name:report_qweb_pdf_watermark.model_ir_actions_report +msgid "Report Action" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model_terms:ir.ui.view,arch_db:report_qweb_pdf_watermark.view_company_form +msgid "" +"Upload an pdf file to use as an Company watermark. You need to activate the " +"setting 'use company watermark' on the reports where you want to use it." +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,help:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark +msgid "Upload an pdf file to use as an watermark on this report." +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_ir_actions_report__use_company_watermark +msgid "Use Company Watermark" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,help:report_qweb_pdf_watermark.field_ir_actions_report__use_company_watermark +msgid "Use the pdf watermark defined globally in the company settings." +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_res_company__pdf_watermark +msgid "Watermark" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.actions.report,name:report_qweb_pdf_watermark.demo_report +msgid "Watermark Demo report" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark_expression +msgid "Watermark expression" +msgstr "" + +#~ msgid "ir.actions.report" +#~ msgstr "ir.actions.report" diff --git a/report_qweb_pdf_watermark/i18n/tr_TR.po b/report_qweb_pdf_watermark/i18n/tr_TR.po new file mode 100644 index 0000000000..94bee3134b --- /dev/null +++ b/report_qweb_pdf_watermark/i18n/tr_TR.po @@ -0,0 +1,76 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * report_qweb_pdf_watermark +# +# Translators: +# Ozge Altinisik , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-01-10 03:40+0000\n" +"PO-Revision-Date: 2017-01-10 03:40+0000\n" +"Last-Translator: Ozge Altinisik , 2017\n" +"Language-Team: Turkish (Turkey) (https://www.transifex.com/oca/teams/23907/" +"tr_TR/)\n" +"Language: tr_TR\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,help:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark_expression +msgid "" +"An expression yielding the base64 encoded data to be used as watermark. \n" +"You have access to variables `env` and `docs`" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model,name:report_qweb_pdf_watermark.model_res_company +msgid "Companies" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model,name:report_qweb_pdf_watermark.model_ir_actions_report +#, fuzzy +msgid "Report Action" +msgstr "Rapor" + +#. module: report_qweb_pdf_watermark +#: model_terms:ir.ui.view,arch_db:report_qweb_pdf_watermark.view_company_form +msgid "" +"Upload an pdf file to use as an Company watermark. You need to activate the " +"setting 'use company watermark' on the reports where you want to use it." +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,help:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark +msgid "Upload an pdf file to use as an watermark on this report." +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_ir_actions_report__use_company_watermark +msgid "Use Company Watermark" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,help:report_qweb_pdf_watermark.field_ir_actions_report__use_company_watermark +msgid "Use the pdf watermark defined globally in the company settings." +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_res_company__pdf_watermark +msgid "Watermark" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.actions.report,name:report_qweb_pdf_watermark.demo_report +msgid "Watermark Demo report" +msgstr "" + +#. module: report_qweb_pdf_watermark +#: model:ir.model.fields,field_description:report_qweb_pdf_watermark.field_ir_actions_report__pdf_watermark_expression +msgid "Watermark expression" +msgstr "" diff --git a/report_qweb_pdf_watermark/models/__init__.py b/report_qweb_pdf_watermark/models/__init__.py new file mode 100644 index 0000000000..a305da9003 --- /dev/null +++ b/report_qweb_pdf_watermark/models/__init__.py @@ -0,0 +1,5 @@ +# © 2016 Therp BV +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from . import res_company +from . import report diff --git a/report_qweb_pdf_watermark/models/report.py b/report_qweb_pdf_watermark/models/report.py new file mode 100644 index 0000000000..40ecd027cc --- /dev/null +++ b/report_qweb_pdf_watermark/models/report.py @@ -0,0 +1,149 @@ +# © 2016 Therp BV +# Copyright 2023 Onestein - Anjeel Haria +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +from base64 import b64decode +from io import BytesIO +from logging import getLogger + +from PIL import Image + +from odoo import api, fields, models +from odoo.tools.safe_eval import safe_eval + +logger = getLogger(__name__) + +try: + # we need this to be sure PIL has loaded PDF support + from PIL import PdfImagePlugin # noqa: F401 +except ImportError: + logger.error("ImportError: The PdfImagePlugin could not be imported") + +try: + from PyPDF2 import PdfFileReader, PdfFileWriter # pylint: disable=W0404 + from PyPDF2.utils import PdfReadError # pylint: disable=W0404 +except ImportError: + logger.debug("Can not import PyPDF2") + + +class Report(models.Model): + _inherit = "ir.actions.report" + + use_company_watermark = fields.Boolean( + default=False, + help="Use the pdf watermark defined globally in the company settings.", + ) + pdf_watermark = fields.Binary( + "Watermark", help="Upload an pdf file to use as an watermark on this report." + ) + pdf_watermark_expression = fields.Char( + "Watermark expression", + help="An expression yielding the base64 " + "encoded data to be used as watermark. \n" + "You have access to variables `env` and `docs`", + ) + + def _render_qweb_pdf(self, report_ref, res_ids=None, data=None): + if not self.env.context.get("res_ids"): + return ( + super() + .with_context(res_ids=res_ids) + ._render_qweb_pdf(report_ref, res_ids=res_ids, data=data) + ) + return super()._render_qweb_pdf(report_ref, res_ids=res_ids, data=data) + + @staticmethod + def pdf_has_usable_pages(numpages): + if numpages < 1: + logger.error("Your watermark pdf does not contain any pages") + return False + if numpages > 1: + logger.debug( + "Your watermark pdf contains more than one page, " + "all but the first one will be ignored" + ) + return True + + @api.model + def _run_wkhtmltopdf( + self, + bodies, + report_ref=False, + header=None, + footer=None, + landscape=False, + specific_paperformat_args=None, + set_viewport_size=False, + ): + result = super()._run_wkhtmltopdf( + bodies, + report_ref=report_ref, + header=header, + footer=footer, + landscape=landscape, + specific_paperformat_args=specific_paperformat_args, + set_viewport_size=set_viewport_size, + ) + + docids = self.env.context.get("res_ids", False) + report_sudo = self._get_report(report_ref) + watermark = None + if self.pdf_watermark or report_sudo.pdf_watermark: + watermark = b64decode(self.pdf_watermark or report_sudo.pdf_watermark) + elif ( + self.use_company_watermark or report_sudo.use_company_watermark + ) and self.env.company.pdf_watermark: + watermark = b64decode(self.env.company.pdf_watermark) + elif docids: + watermark = safe_eval( + self.pdf_watermark_expression + or report_sudo.pdf_watermark_expression + or "None", + dict( + env=self.env, + docs=self.env[self.model or report_sudo.model].browse(docids), + ), + ) + if watermark: + watermark = b64decode(watermark) + + if not watermark: + return result + + pdf = PdfFileWriter() + pdf_watermark = None + try: + pdf_watermark = PdfFileReader(BytesIO(watermark)) + except PdfReadError: + # let's see if we can convert this with pillow + try: + Image.init() + image = Image.open(BytesIO(watermark)) + pdf_buffer = BytesIO() + if image.mode != "RGB": + image = image.convert("RGB") + resolution = image.info.get("dpi", self.paperformat_id.dpi or 90) + if isinstance(resolution, tuple): + resolution = resolution[0] + image.save(pdf_buffer, "pdf", resolution=resolution) + pdf_watermark = PdfFileReader(pdf_buffer) + except Exception as e: + logger.exception("Failed to load watermark", e) + + if not pdf_watermark: + logger.error("No usable watermark found, got %s...", watermark[:100]) + return result + + if not self.pdf_has_usable_pages(pdf_watermark.numPages): + return result + + for page in PdfFileReader(BytesIO(result)).pages: + watermark_page = pdf.addBlankPage( + page.mediaBox.getWidth(), page.mediaBox.getHeight() + ) + watermark_page.mergePage(pdf_watermark.getPage(0)) + watermark_page.mergePage(page) + + pdf_content = BytesIO() + pdf.write(pdf_content) + + return pdf_content.getvalue() diff --git a/report_qweb_pdf_watermark/models/res_company.py b/report_qweb_pdf_watermark/models/res_company.py new file mode 100644 index 0000000000..a7bbf87f17 --- /dev/null +++ b/report_qweb_pdf_watermark/models/res_company.py @@ -0,0 +1,10 @@ +# Copyright 2022 360 ERP () +# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html). + +from odoo import fields, models + + +class ResCompany(models.Model): + _inherit = "res.company" + + pdf_watermark = fields.Binary("Watermark") diff --git a/report_qweb_pdf_watermark/pyproject.toml b/report_qweb_pdf_watermark/pyproject.toml new file mode 100644 index 0000000000..4231d0cccb --- /dev/null +++ b/report_qweb_pdf_watermark/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/report_qweb_pdf_watermark/readme/CONTRIBUTORS.md b/report_qweb_pdf_watermark/readme/CONTRIBUTORS.md new file mode 100644 index 0000000000..86a50f5c5a --- /dev/null +++ b/report_qweb_pdf_watermark/readme/CONTRIBUTORS.md @@ -0,0 +1,8 @@ +- Holger Brunn \<\> +- Stefan Rijnhart \<\> +- Rod Schouteden \<\> +- Robin Goots \<\> +- Foram Shah \<\> +- Emiel van Bokhoven \<\> +- Sander Lienaerts \<\> +- Anjeel Haria diff --git a/report_qweb_pdf_watermark/readme/DESCRIPTION.md b/report_qweb_pdf_watermark/readme/DESCRIPTION.md new file mode 100644 index 0000000000..5579135f4f --- /dev/null +++ b/report_qweb_pdf_watermark/readme/DESCRIPTION.md @@ -0,0 +1,5 @@ +This module was written to add watermarks (backgrounds) to PDF reports. +Because of the way wkhtmltopdf handles headers and footers in the +current versions, it is quite impossible to have a background for the +complete page using HTML and CSS. That is why this module inserts the +image at the PDF level. diff --git a/report_qweb_pdf_watermark/readme/HISTORY.md b/report_qweb_pdf_watermark/readme/HISTORY.md new file mode 100644 index 0000000000..cd00602e50 --- /dev/null +++ b/report_qweb_pdf_watermark/readme/HISTORY.md @@ -0,0 +1,24 @@ +## 12.0.1.0.0 (2019-11-18) + +- \[MIG\] Migration to V12. + +## 13.0.1.0.0 (2021-01-27) + +- \[MIG\] Migration to V13. + +## 14.0.1.0.0 (2021-01-29) + +- \[MIG\] Migration to V14. + +## 15.0.1.0.0 (2022-01-11) + +- \[MIG\] Migration to V15. +- Define pdf watermark in company settings + +## 16.0.1.0.0 (2023-03-13) + +- \[MIG\] Migration to V16. + +## 17.0.1.0.0 (2024-01-12) + +- \[MIG\] Migration to V17. diff --git a/report_qweb_pdf_watermark/readme/INSTALL.md b/report_qweb_pdf_watermark/readme/INSTALL.md new file mode 100644 index 0000000000..9c0fa342f6 --- /dev/null +++ b/report_qweb_pdf_watermark/readme/INSTALL.md @@ -0,0 +1,3 @@ +As PyPDF is not supported in python3, you need to install PyPDF2: + + $ pip install pypdf2 diff --git a/report_qweb_pdf_watermark/readme/ROADMAP.md b/report_qweb_pdf_watermark/readme/ROADMAP.md new file mode 100644 index 0000000000..e848ba42f2 --- /dev/null +++ b/report_qweb_pdf_watermark/readme/ROADMAP.md @@ -0,0 +1,3 @@ +This module depends on support for transparent backgrounds in +Wkhtmltopdf, which has been flaky in the past. This module has been +reported to work with Wkhtmltopdf 0.12.4. diff --git a/report_qweb_pdf_watermark/readme/USAGE.md b/report_qweb_pdf_watermark/readme/USAGE.md new file mode 100644 index 0000000000..3e6c269a76 --- /dev/null +++ b/report_qweb_pdf_watermark/readme/USAGE.md @@ -0,0 +1,23 @@ +To use this module, you need to: + +1. go to your report +2. select a PDF or image to use as watermark. Note that resolutions and + size must match, otherwise you'll have funny results +3. You can also fill in an expression that returns the data (base64 + encoded) to be used as watermark + +To use the Company watermark, you need to: + +1. go to settings --\> company --\> update info +2. upload an pdf watermark +3. go to settings --\> technical --\> reporting --\> reports +4. Select the report where you want to use it. +5. On the 'Advanced Properties' tab of the notebook check 'use company + watermark' + +\### Demo And demo report is available (if you have demo data installed) +on the users form view. + +1. go to Configuration --\> users +2. Select an users +3. Click the print button --\> Watermark Demo report. diff --git a/report_qweb_pdf_watermark/static/description/icon.png b/report_qweb_pdf_watermark/static/description/icon.png new file mode 100644 index 0000000000..3a0328b516 Binary files /dev/null and b/report_qweb_pdf_watermark/static/description/icon.png differ diff --git a/report_qweb_pdf_watermark/static/description/index.html b/report_qweb_pdf_watermark/static/description/index.html new file mode 100644 index 0000000000..344f88d24f --- /dev/null +++ b/report_qweb_pdf_watermark/static/description/index.html @@ -0,0 +1,524 @@ + + + + + + +Pdf watermark + + + +
+

Pdf watermark

+ + +

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

+

This module was written to add watermarks (backgrounds) to PDF reports. +Because of the way wkhtmltopdf handles headers and footers in the +current versions, it is quite impossible to have a background for the +complete page using HTML and CSS. That is why this module inserts the +image at the PDF level.

+

Table of contents

+ +
+

Installation

+

As PyPDF is not supported in python3, you need to install PyPDF2:

+
+$ pip install pypdf2
+
+
+
+

Usage

+

To use this module, you need to:

+
    +
  1. go to your report
  2. +
  3. select a PDF or image to use as watermark. Note that resolutions and +size must match, otherwise you’ll have funny results
  4. +
  5. You can also fill in an expression that returns the data (base64 +encoded) to be used as watermark
  6. +
+

To use the Company watermark, you need to:

+
    +
  1. go to settings –> company –> update info
  2. +
  3. upload an pdf watermark
  4. +
  5. go to settings –> technical –> reporting –> reports
  6. +
  7. Select the report where you want to use it.
  8. +
  9. On the ‘Advanced Properties’ tab of the notebook check ‘use company +watermark’
  10. +
+

### Demo And demo report is available (if you have demo data installed) +on the users form view.

+
    +
  1. go to Configuration –> users
  2. +
  3. Select an users
  4. +
  5. Click the print button –> Watermark Demo report.
  6. +
+
+
+

Known issues / Roadmap

+

This module depends on support for transparent backgrounds in +Wkhtmltopdf, which has been flaky in the past. This module has been +reported to work with Wkhtmltopdf 0.12.4.

+
+
+

Changelog

+
+

12.0.1.0.0 (2019-11-18)

+
    +
  • [MIG] Migration to V12.
  • +
+
+
+

13.0.1.0.0 (2021-01-27)

+
    +
  • [MIG] Migration to V13.
  • +
+
+
+

14.0.1.0.0 (2021-01-29)

+
    +
  • [MIG] Migration to V14.
  • +
+
+
+

15.0.1.0.0 (2022-01-11)

+
    +
  • [MIG] Migration to V15.
  • +
  • Define pdf watermark in company settings
  • +
+
+
+

16.0.1.0.0 (2023-03-13)

+
    +
  • [MIG] Migration to V16.
  • +
+
+
+

17.0.1.0.0 (2024-01-12)

+
    +
  • [MIG] Migration to V17.
  • +
+
+
+
+

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.

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • Therp BV
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is maintained by the OCA.

+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.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+ + diff --git a/report_qweb_pdf_watermark/static/src/css/report_qweb_pdf_watermark.css b/report_qweb_pdf_watermark/static/src/css/report_qweb_pdf_watermark.css new file mode 100644 index 0000000000..83cc2eb021 --- /dev/null +++ b/report_qweb_pdf_watermark/static/src/css/report_qweb_pdf_watermark.css @@ -0,0 +1,3 @@ +body { + background: transparent !important; +} diff --git a/report_qweb_pdf_watermark/tests/__init__.py b/report_qweb_pdf_watermark/tests/__init__.py new file mode 100644 index 0000000000..1934090dee --- /dev/null +++ b/report_qweb_pdf_watermark/tests/__init__.py @@ -0,0 +1,4 @@ +# © 2016 Therp BV +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from . import test_report_qweb_pdf_watermark diff --git a/report_qweb_pdf_watermark/tests/test_report_qweb_pdf_watermark.py b/report_qweb_pdf_watermark/tests/test_report_qweb_pdf_watermark.py new file mode 100644 index 0000000000..a4af8be91d --- /dev/null +++ b/report_qweb_pdf_watermark/tests/test_report_qweb_pdf_watermark.py @@ -0,0 +1,63 @@ +# © 2016 Therp BV +# Copyright 2023 Onestein - Anjeel Haria +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +from PIL import Image + +from odoo.tests.common import HttpCase + + +class TestReportQwebPdfWatermark(HttpCase): + def test_report_qweb_pdf_watermark(self): + Image.init() + # with our image, we have three + self._test_report_images(3) + + self.env.ref("report_qweb_pdf_watermark.demo_report").write( + {"pdf_watermark_expression": False} + ) + # without, we have two + self._test_report_images(2) + + self.env.ref("report_qweb_pdf_watermark.demo_report").write( + {"pdf_watermark": self.env.user.company_id.logo} + ) + # and now we should have three again + self._test_report_images(3) + + # test use company watermark + self.env.ref("report_qweb_pdf_watermark.demo_report").write( + {"pdf_watermark": False} + ) + self.env.ref("report_qweb_pdf_watermark.demo_report").write( + {"use_company_watermark": True} + ) + self.env.ref("base.main_company").write( + {"pdf_watermark": self.env.user.company_id.logo} + ) + self._test_report_images(3) + + def _test_report_images(self, number): + pdf, _ = ( + self.env["ir.actions.report"] + .with_context(force_report_rendering=True) + ._render_qweb_pdf( + "report_qweb_pdf_watermark.demo_report", + self.env["res.users"].search([]).ids, + ) + ) + self.assertEqual(pdf.count(b"/Subtype /Image"), number) + + def test_pdf_has_usable_pages(self): + # test 0 + numpages = 0 + # pdf_has_usable_pages(self, pdf_watermark) + with self.assertLogs(level="ERROR"): + self.assertFalse( + self.env["ir.actions.report"].pdf_has_usable_pages(numpages) + ) + # test 1 + numpages = 1 + self.assertTrue(self.env["ir.actions.report"].pdf_has_usable_pages(numpages)) + # test 2 + numpages = 2 + self.assertTrue(self.env["ir.actions.report"].pdf_has_usable_pages(numpages)) diff --git a/report_qweb_pdf_watermark/views/ir_actions_report_xml.xml b/report_qweb_pdf_watermark/views/ir_actions_report_xml.xml new file mode 100644 index 0000000000..5b9cdd3c39 --- /dev/null +++ b/report_qweb_pdf_watermark/views/ir_actions_report_xml.xml @@ -0,0 +1,25 @@ + + + + ir.actions.report + + + + + + + + + + diff --git a/report_qweb_pdf_watermark/views/res_company.xml b/report_qweb_pdf_watermark/views/res_company.xml new file mode 100644 index 0000000000..66a55d4876 --- /dev/null +++ b/report_qweb_pdf_watermark/views/res_company.xml @@ -0,0 +1,20 @@ + + + + + res.company + + + + + + + + + + +