Merge PR #841 into 17.0

Signed-off-by HviorForgeFlow
This commit is contained in:
OCA-git-bot
2024-11-26 21:05:36 +00:00
42 changed files with 2725 additions and 0 deletions

View File

@@ -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 <https://github.com/OCA/reporting-engine/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 <https://github.com/OCA/reporting-engine/issues/new?body=module:%20report_qweb_pdf_watermark%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
Do not contact contributors directly about support or help with technical issues.
Credits
=======
Authors
-------
* Therp BV
Contributors
------------
- Holger Brunn <hbrunn@therp.nl>
- Stefan Rijnhart <stefan@opener.am>
- Rod Schouteden <rod.schouteden@dynapps.be>
- Robin Goots <robin.goots@dynapps.be>
- Foram Shah <foram.shah@initos.com>
- Emiel van Bokhoven <emiel@360erp.nl>
- Sander Lienaerts <sander.lienaerts@codeforward.nl>
- 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 <https://github.com/OCA/reporting-engine/tree/17.0/report_qweb_pdf_watermark>`_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

View File

@@ -0,0 +1,4 @@
# © 2016 Therp BV <http://therp.nl>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from . import models

View File

@@ -0,0 +1,24 @@
# © 2016 Therp BV <http://therp.nl>
# 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,
}

View File

@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="demo_report" model="ir.actions.report">
<field name="name">Watermark Demo report</field>
<field name="model">res.users</field>
<field name="report_type">qweb-pdf</field>
<field name="report_name">report_qweb_pdf_watermark.demo_report_view</field>
<field name="report_file">report_qweb_pdf_watermark.demo_report_view</field>
<field name="paperformat_id" ref="base.paperformat_euro" />
<field name="pdf_watermark_expression">docs[:1].company_id.logo</field>
<field name="binding_model_id" ref="base.model_res_users" />
<field name="binding_type">report</field>
</record>
<template id="demo_report_view">
<t t-call="web.html_container">
<t t-call="web.external_layout">
<div class="page">
<ul>
<li t-foreach="docs" t-as="doc">
<t t-esc="doc.name" />
</li>
</ul>
</div>
</t>
</t>
</template>
</odoo>

View File

@@ -0,0 +1,75 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * report_qweb_pdf_watermark
#
# Translators:
# Carles Antoli <carlesantoli@hotmail.com>, 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 <carlesantoli@hotmail.com>, 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 ""

View File

@@ -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 <hhg@gabelgaard.org>, 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 <hhg@gabelgaard.org>, 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 ""

View File

@@ -0,0 +1,85 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * report_qweb_pdf_watermark
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
# Rudolf Schnapka <rs@techno-flex.de>, 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 <rs@techno-flex.de>, 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"

View File

@@ -0,0 +1,76 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * report_qweb_pdf_watermark
#
# Translators:
# Kostas Goutoudis <goutoudis@gmail.com>, 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 <goutoudis@gmail.com>, 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 ""

View File

@@ -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 <pedro.baeza@gmail.com>, 2017
# OCA Transbot <transbot@odoo-community.org>, 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 <informatica@totmaterial.es>\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"

View File

@@ -0,0 +1,76 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * report_qweb_pdf_watermark
#
# Translators:
# John Toro <johntoro@gmail.com>, 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 <johntoro@gmail.com>, 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 ""

View File

@@ -0,0 +1,79 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * report_qweb_pdf_watermark
#
# Translators:
# Yannick Vaucher <yannick.vaucher@camptocamp.com>, 2017
# OCA Transbot <transbot@odoo-community.org>, 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 <transbot@odoo-community.org>, 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"

View File

@@ -0,0 +1,75 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * report_qweb_pdf_watermark
#
# Translators:
# Alejandro Santana <alejandrosantana@anubia.es>, 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 <alejandrosantana@anubia.es>, 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 ""

View File

@@ -0,0 +1,78 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * report_qweb_pdf_watermark
#
# Translators:
# Bole <bole@dajmi5.com>, 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 <bole@dajmi5.com>, 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"

View File

@@ -0,0 +1,85 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * report_qweb_pdf_watermark
#
# Translators:
# Bole <bole@dajmi5.com>, 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 <bole@dajmi5.com>, 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"

View File

@@ -0,0 +1,79 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * report_qweb_pdf_watermark
#
# Translators:
# Paolo Valier <paolo.valier@hotmail.it>, 2017
# OCA Transbot <transbot@odoo-community.org>, 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 <transbot@odoo-community.org>, 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"

View File

@@ -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 <imreeil42@gmail.com>, 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 <imreeil42@gmail.com>, 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 ""

View File

@@ -0,0 +1,79 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * report_qweb_pdf_watermark
#
# Translators:
# Peter Hageman <hageman.p@gmail.com>, 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 <hageman.p@gmail.com>, 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"

View File

@@ -0,0 +1,76 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * report_qweb_pdf_watermark
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 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 <transbot@odoo-community.org>, 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 ""

View File

@@ -0,0 +1,75 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * report_qweb_pdf_watermark
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 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 <transbot@odoo-community.org>, 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 ""

View File

@@ -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 <vulcano@uol.com.br>, 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 <vulcano@uol.com.br>, 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 ""

View File

@@ -0,0 +1,80 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * report_qweb_pdf_watermark
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
# Carla Berjano <berjano.carla@gmail.com>, 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 <berjano.carla@gmail.com>, 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"

View File

@@ -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 ""

View File

@@ -0,0 +1,76 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * report_qweb_pdf_watermark
#
# Translators:
# Matjaž Mozetič <m.mozetic@matmoz.si>, 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č <m.mozetic@matmoz.si>, 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 ""

View File

@@ -0,0 +1,77 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * report_qweb_pdf_watermark
#
# Translators:
# Ahmet Altinisik <aaltinisik@altinkaya.com.tr>, 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 <aaltinisik@altinkaya.com.tr>, 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"

View File

@@ -0,0 +1,76 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * report_qweb_pdf_watermark
#
# Translators:
# Ozge Altinisik <ozge@altinkaya.com.tr>, 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 <ozge@altinkaya.com.tr>, 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 ""

View File

@@ -0,0 +1,5 @@
# © 2016 Therp BV <http://therp.nl>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from . import res_company
from . import report

View File

@@ -0,0 +1,149 @@
# © 2016 Therp BV <http://therp.nl>
# 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()

View File

@@ -0,0 +1,10 @@
# Copyright 2022 360 ERP (<https://www.360erp.nl>)
# 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")

View File

@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"

View File

@@ -0,0 +1,8 @@
- Holger Brunn \<<hbrunn@therp.nl>\>
- Stefan Rijnhart \<<stefan@opener.am>\>
- Rod Schouteden \<<rod.schouteden@dynapps.be>\>
- Robin Goots \<<robin.goots@dynapps.be>\>
- Foram Shah \<<foram.shah@initos.com>\>
- Emiel van Bokhoven \<<emiel@360erp.nl>\>
- Sander Lienaerts \<<sander.lienaerts@codeforward.nl>\>
- Anjeel Haria

View File

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

View File

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

View File

@@ -0,0 +1,3 @@
As PyPDF is not supported in python3, you need to install PyPDF2:
$ pip install pypdf2

View File

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

View File

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.2 KiB

View File

@@ -0,0 +1,524 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="Docutils: https://docutils.sourceforge.io/" />
<title>Pdf watermark</title>
<style type="text/css">
/*
:Author: David Goodger (goodger@python.org)
:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $
:Copyright: This stylesheet has been placed in the public domain.
Default cascading style sheet for the HTML output of Docutils.
See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
customize this style sheet.
*/
/* used to remove borders from tables and images */
.borderless, table.borderless td, table.borderless th {
border: 0 }
table.borderless td, table.borderless th {
/* Override padding for "table.docutils td" with "! important".
The right padding separates the table cells. */
padding: 0 0.5em 0 0 ! important }
.first {
/* Override more specific margin styles with "! important". */
margin-top: 0 ! important }
.last, .with-subtitle {
margin-bottom: 0 ! important }
.hidden {
display: none }
.subscript {
vertical-align: sub;
font-size: smaller }
.superscript {
vertical-align: super;
font-size: smaller }
a.toc-backref {
text-decoration: none ;
color: black }
blockquote.epigraph {
margin: 2em 5em ; }
dl.docutils dd {
margin-bottom: 0.5em }
object[type="image/svg+xml"], object[type="application/x-shockwave-flash"] {
overflow: hidden;
}
/* Uncomment (and remove this text!) to get bold-faced definition list terms
dl.docutils dt {
font-weight: bold }
*/
div.abstract {
margin: 2em 5em }
div.abstract p.topic-title {
font-weight: bold ;
text-align: center }
div.admonition, div.attention, div.caution, div.danger, div.error,
div.hint, div.important, div.note, div.tip, div.warning {
margin: 2em ;
border: medium outset ;
padding: 1em }
div.admonition p.admonition-title, div.hint p.admonition-title,
div.important p.admonition-title, div.note p.admonition-title,
div.tip p.admonition-title {
font-weight: bold ;
font-family: sans-serif }
div.attention p.admonition-title, div.caution p.admonition-title,
div.danger p.admonition-title, div.error p.admonition-title,
div.warning p.admonition-title, .code .error {
color: red ;
font-weight: bold ;
font-family: sans-serif }
/* Uncomment (and remove this text!) to get reduced vertical space in
compound paragraphs.
div.compound .compound-first, div.compound .compound-middle {
margin-bottom: 0.5em }
div.compound .compound-last, div.compound .compound-middle {
margin-top: 0.5em }
*/
div.dedication {
margin: 2em 5em ;
text-align: center ;
font-style: italic }
div.dedication p.topic-title {
font-weight: bold ;
font-style: normal }
div.figure {
margin-left: 2em ;
margin-right: 2em }
div.footer, div.header {
clear: both;
font-size: smaller }
div.line-block {
display: block ;
margin-top: 1em ;
margin-bottom: 1em }
div.line-block div.line-block {
margin-top: 0 ;
margin-bottom: 0 ;
margin-left: 1.5em }
div.sidebar {
margin: 0 0 0.5em 1em ;
border: medium outset ;
padding: 1em ;
background-color: #ffffee ;
width: 40% ;
float: right ;
clear: right }
div.sidebar p.rubric {
font-family: sans-serif ;
font-size: medium }
div.system-messages {
margin: 5em }
div.system-messages h1 {
color: red }
div.system-message {
border: medium outset ;
padding: 1em }
div.system-message p.system-message-title {
color: red ;
font-weight: bold }
div.topic {
margin: 2em }
h1.section-subtitle, h2.section-subtitle, h3.section-subtitle,
h4.section-subtitle, h5.section-subtitle, h6.section-subtitle {
margin-top: 0.4em }
h1.title {
text-align: center }
h2.subtitle {
text-align: center }
hr.docutils {
width: 75% }
img.align-left, .figure.align-left, object.align-left, table.align-left {
clear: left ;
float: left ;
margin-right: 1em }
img.align-right, .figure.align-right, object.align-right, table.align-right {
clear: right ;
float: right ;
margin-left: 1em }
img.align-center, .figure.align-center, object.align-center {
display: block;
margin-left: auto;
margin-right: auto;
}
table.align-center {
margin-left: auto;
margin-right: auto;
}
.align-left {
text-align: left }
.align-center {
clear: both ;
text-align: center }
.align-right {
text-align: right }
/* reset inner alignment in figures */
div.align-right {
text-align: inherit }
/* div.align-center * { */
/* text-align: left } */
.align-top {
vertical-align: top }
.align-middle {
vertical-align: middle }
.align-bottom {
vertical-align: bottom }
ol.simple, ul.simple {
margin-bottom: 1em }
ol.arabic {
list-style: decimal }
ol.loweralpha {
list-style: lower-alpha }
ol.upperalpha {
list-style: upper-alpha }
ol.lowerroman {
list-style: lower-roman }
ol.upperroman {
list-style: upper-roman }
p.attribution {
text-align: right ;
margin-left: 50% }
p.caption {
font-style: italic }
p.credits {
font-style: italic ;
font-size: smaller }
p.label {
white-space: nowrap }
p.rubric {
font-weight: bold ;
font-size: larger ;
color: maroon ;
text-align: center }
p.sidebar-title {
font-family: sans-serif ;
font-weight: bold ;
font-size: larger }
p.sidebar-subtitle {
font-family: sans-serif ;
font-weight: bold }
p.topic-title {
font-weight: bold }
pre.address {
margin-bottom: 0 ;
margin-top: 0 ;
font: inherit }
pre.literal-block, pre.doctest-block, pre.math, pre.code {
margin-left: 2em ;
margin-right: 2em }
pre.code .ln { color: grey; } /* line numbers */
pre.code, code { background-color: #eeeeee }
pre.code .comment, code .comment { color: #5C6576 }
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
pre.code .literal.string, code .literal.string { color: #0C5404 }
pre.code .name.builtin, code .name.builtin { color: #352B84 }
pre.code .deleted, code .deleted { background-color: #DEB0A1}
pre.code .inserted, code .inserted { background-color: #A3D289}
span.classifier {
font-family: sans-serif ;
font-style: oblique }
span.classifier-delimiter {
font-family: sans-serif ;
font-weight: bold }
span.interpreted {
font-family: sans-serif }
span.option {
white-space: nowrap }
span.pre {
white-space: pre }
span.problematic {
color: red }
span.section-subtitle {
/* font-size relative to parent (h1..h6 element) */
font-size: 80% }
table.citation {
border-left: solid 1px gray;
margin-left: 1px }
table.docinfo {
margin: 2em 4em }
table.docutils {
margin-top: 0.5em ;
margin-bottom: 0.5em }
table.footnote {
border-left: solid 1px black;
margin-left: 1px }
table.docutils td, table.docutils th,
table.docinfo td, table.docinfo th {
padding-left: 0.5em ;
padding-right: 0.5em ;
vertical-align: top }
table.docutils th.field-name, table.docinfo th.docinfo-name {
font-weight: bold ;
text-align: left ;
white-space: nowrap ;
padding-left: 0 }
/* "booktabs" style (no vertical lines) */
table.docutils.booktabs {
border: 0px;
border-top: 2px solid;
border-bottom: 2px solid;
border-collapse: collapse;
}
table.docutils.booktabs * {
border: 0px;
}
table.docutils.booktabs th {
border-bottom: thin solid;
text-align: left;
}
h1 tt.docutils, h2 tt.docutils, h3 tt.docutils,
h4 tt.docutils, h5 tt.docutils, h6 tt.docutils {
font-size: 100% }
ul.auto-toc {
list-style-type: none }
</style>
</head>
<body>
<div class="document" id="pdf-watermark">
<h1 class="title">Pdf watermark</h1>
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:2940fdc81ee124d4fef7eef00d6394463dddb5177a4996e6c5ffcb6a19b5734e
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Production/Stable" src="https://img.shields.io/badge/maturity-Production%2FStable-green.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/reporting-engine/tree/17.0/report_qweb_pdf_watermark"><img alt="OCA/reporting-engine" src="https://img.shields.io/badge/github-OCA%2Freporting--engine-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/reporting-engine-17-0/reporting-engine-17-0-report_qweb_pdf_watermark"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/reporting-engine&amp;target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>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.</p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
<ul class="simple">
<li><a class="reference internal" href="#installation" id="toc-entry-1">Installation</a></li>
<li><a class="reference internal" href="#usage" id="toc-entry-2">Usage</a></li>
<li><a class="reference internal" href="#known-issues-roadmap" id="toc-entry-3">Known issues / Roadmap</a></li>
<li><a class="reference internal" href="#changelog" id="toc-entry-4">Changelog</a><ul>
<li><a class="reference internal" href="#section-1" id="toc-entry-5">12.0.1.0.0 (2019-11-18)</a></li>
<li><a class="reference internal" href="#section-2" id="toc-entry-6">13.0.1.0.0 (2021-01-27)</a></li>
<li><a class="reference internal" href="#section-3" id="toc-entry-7">14.0.1.0.0 (2021-01-29)</a></li>
<li><a class="reference internal" href="#section-4" id="toc-entry-8">15.0.1.0.0 (2022-01-11)</a></li>
<li><a class="reference internal" href="#section-5" id="toc-entry-9">16.0.1.0.0 (2023-03-13)</a></li>
<li><a class="reference internal" href="#section-6" id="toc-entry-10">17.0.1.0.0 (2024-01-12)</a></li>
</ul>
</li>
<li><a class="reference internal" href="#bug-tracker" id="toc-entry-11">Bug Tracker</a></li>
<li><a class="reference internal" href="#credits" id="toc-entry-12">Credits</a><ul>
<li><a class="reference internal" href="#authors" id="toc-entry-13">Authors</a></li>
<li><a class="reference internal" href="#contributors" id="toc-entry-14">Contributors</a></li>
<li><a class="reference internal" href="#maintainers" id="toc-entry-15">Maintainers</a></li>
</ul>
</li>
</ul>
</div>
<div class="section" id="installation">
<h1><a class="toc-backref" href="#toc-entry-1">Installation</a></h1>
<p>As PyPDF is not supported in python3, you need to install PyPDF2:</p>
<pre class="literal-block">
$ pip install pypdf2
</pre>
</div>
<div class="section" id="usage">
<h1><a class="toc-backref" href="#toc-entry-2">Usage</a></h1>
<p>To use this module, you need to:</p>
<ol class="arabic simple">
<li>go to your report</li>
<li>select a PDF or image to use as watermark. Note that resolutions and
size must match, otherwise youll have funny results</li>
<li>You can also fill in an expression that returns the data (base64
encoded) to be used as watermark</li>
</ol>
<p>To use the Company watermark, you need to:</p>
<ol class="arabic simple">
<li>go to settings &gt; company &gt; update info</li>
<li>upload an pdf watermark</li>
<li>go to settings &gt; technical &gt; reporting &gt; reports</li>
<li>Select the report where you want to use it.</li>
<li>On the Advanced Properties tab of the notebook check use company
watermark</li>
</ol>
<p>### Demo And demo report is available (if you have demo data installed)
on the users form view.</p>
<ol class="arabic simple">
<li>go to Configuration &gt; users</li>
<li>Select an users</li>
<li>Click the print button &gt; Watermark Demo report.</li>
</ol>
</div>
<div class="section" id="known-issues-roadmap">
<h1><a class="toc-backref" href="#toc-entry-3">Known issues / Roadmap</a></h1>
<p>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.</p>
</div>
<div class="section" id="changelog">
<h1><a class="toc-backref" href="#toc-entry-4">Changelog</a></h1>
<div class="section" id="section-1">
<h2><a class="toc-backref" href="#toc-entry-5">12.0.1.0.0 (2019-11-18)</a></h2>
<ul class="simple">
<li>[MIG] Migration to V12.</li>
</ul>
</div>
<div class="section" id="section-2">
<h2><a class="toc-backref" href="#toc-entry-6">13.0.1.0.0 (2021-01-27)</a></h2>
<ul class="simple">
<li>[MIG] Migration to V13.</li>
</ul>
</div>
<div class="section" id="section-3">
<h2><a class="toc-backref" href="#toc-entry-7">14.0.1.0.0 (2021-01-29)</a></h2>
<ul class="simple">
<li>[MIG] Migration to V14.</li>
</ul>
</div>
<div class="section" id="section-4">
<h2><a class="toc-backref" href="#toc-entry-8">15.0.1.0.0 (2022-01-11)</a></h2>
<ul class="simple">
<li>[MIG] Migration to V15.</li>
<li>Define pdf watermark in company settings</li>
</ul>
</div>
<div class="section" id="section-5">
<h2><a class="toc-backref" href="#toc-entry-9">16.0.1.0.0 (2023-03-13)</a></h2>
<ul class="simple">
<li>[MIG] Migration to V16.</li>
</ul>
</div>
<div class="section" id="section-6">
<h2><a class="toc-backref" href="#toc-entry-10">17.0.1.0.0 (2024-01-12)</a></h2>
<ul class="simple">
<li>[MIG] Migration to V17.</li>
</ul>
</div>
</div>
<div class="section" id="bug-tracker">
<h1><a class="toc-backref" href="#toc-entry-11">Bug Tracker</a></h1>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/reporting-engine/issues">GitHub Issues</a>.
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
<a class="reference external" href="https://github.com/OCA/reporting-engine/issues/new?body=module:%20report_qweb_pdf_watermark%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p>
</div>
<div class="section" id="credits">
<h1><a class="toc-backref" href="#toc-entry-12">Credits</a></h1>
<div class="section" id="authors">
<h2><a class="toc-backref" href="#toc-entry-13">Authors</a></h2>
<ul class="simple">
<li>Therp BV</li>
</ul>
</div>
<div class="section" id="contributors">
<h2><a class="toc-backref" href="#toc-entry-14">Contributors</a></h2>
<ul class="simple">
<li>Holger Brunn &lt;<a class="reference external" href="mailto:hbrunn&#64;therp.nl">hbrunn&#64;therp.nl</a>&gt;</li>
<li>Stefan Rijnhart &lt;<a class="reference external" href="mailto:stefan&#64;opener.am">stefan&#64;opener.am</a>&gt;</li>
<li>Rod Schouteden &lt;<a class="reference external" href="mailto:rod.schouteden&#64;dynapps.be">rod.schouteden&#64;dynapps.be</a>&gt;</li>
<li>Robin Goots &lt;<a class="reference external" href="mailto:robin.goots&#64;dynapps.be">robin.goots&#64;dynapps.be</a>&gt;</li>
<li>Foram Shah &lt;<a class="reference external" href="mailto:foram.shah&#64;initos.com">foram.shah&#64;initos.com</a>&gt;</li>
<li>Emiel van Bokhoven &lt;<a class="reference external" href="mailto:emiel&#64;360erp.nl">emiel&#64;360erp.nl</a>&gt;</li>
<li>Sander Lienaerts &lt;<a class="reference external" href="mailto:sander.lienaerts&#64;codeforward.nl">sander.lienaerts&#64;codeforward.nl</a>&gt;</li>
<li>Anjeel Haria</li>
</ul>
</div>
<div class="section" id="maintainers">
<h2><a class="toc-backref" href="#toc-entry-15">Maintainers</a></h2>
<p>This module is maintained by the OCA.</p>
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
<p>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.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/reporting-engine/tree/17.0/report_qweb_pdf_watermark">OCA/reporting-engine</a> project on GitHub.</p>
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
</div>
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,3 @@
body {
background: transparent !important;
}

View File

@@ -0,0 +1,4 @@
# © 2016 Therp BV <http://therp.nl>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from . import test_report_qweb_pdf_watermark

View File

@@ -0,0 +1,63 @@
# © 2016 Therp BV <http://therp.nl>
# 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))

View File

@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="act_report_xml_view" model="ir.ui.view">
<field name="model">ir.actions.report</field>
<field name="inherit_id" ref="base.act_report_xml_view" />
<field name="arch" type="xml">
<field name="attachment" position="after">
<field
name="use_company_watermark"
invisible="report_type != 'qweb-pdf'"
/>
<field
name="pdf_watermark_expression"
invisible="report_type != 'qweb-pdf' or use_company_watermark"
groups="base.group_no_one"
/>
<field
name="pdf_watermark"
invisible="report_type != 'qweb-pdf' or use_company_watermark"
widget="pdf_viewer"
/>
</field>
</field>
</record>
</odoo>

View File

@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="view_company_form" model="ir.ui.view">
<field name="model">res.company</field>
<field name="inherit_id" ref="base.view_company_form" />
<field name="arch" type="xml">
<xpath expr="//field[@name='currency_id']" position="after">
<field
name="pdf_watermark"
widget="pdf_viewer"
help="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."
/>
</xpath>
</field>
</record>
</odoo>