Rod Schouteden
6 years ago
committed by
Robin Goots
31 changed files with 204 additions and 210 deletions
-
5report_qweb_pdf_watermark/README.rst
-
2report_qweb_pdf_watermark/__init__.py
-
17report_qweb_pdf_watermark/__manifest__.py
-
8report_qweb_pdf_watermark/demo/report.xml
-
8report_qweb_pdf_watermark/i18n/ca.po
-
8report_qweb_pdf_watermark/i18n/da.po
-
13report_qweb_pdf_watermark/i18n/de.po
-
11report_qweb_pdf_watermark/i18n/el_GR.po
-
13report_qweb_pdf_watermark/i18n/es.po
-
11report_qweb_pdf_watermark/i18n/es_CO.po
-
10report_qweb_pdf_watermark/i18n/fr.po
-
8report_qweb_pdf_watermark/i18n/gl.po
-
34report_qweb_pdf_watermark/i18n/hr.po
-
16report_qweb_pdf_watermark/i18n/hr_HR.po
-
10report_qweb_pdf_watermark/i18n/it.po
-
11report_qweb_pdf_watermark/i18n/nb_NO.po
-
13report_qweb_pdf_watermark/i18n/nl_NL.po
-
11report_qweb_pdf_watermark/i18n/pl.po
-
8report_qweb_pdf_watermark/i18n/pt.po
-
11report_qweb_pdf_watermark/i18n/pt_BR.po
-
13report_qweb_pdf_watermark/i18n/pt_PT.po
-
11report_qweb_pdf_watermark/i18n/sl.po
-
10report_qweb_pdf_watermark/i18n/tr.po
-
11report_qweb_pdf_watermark/i18n/tr_TR.po
-
2report_qweb_pdf_watermark/models/__init__.py
-
14report_qweb_pdf_watermark/models/ir_actions_report_xml.py
-
69report_qweb_pdf_watermark/models/report.py
-
1report_qweb_pdf_watermark/tests/__init__.py
-
11report_qweb_pdf_watermark/tests/test_report_qweb_pdf_watermark.py
-
2report_qweb_pdf_watermark/views/ir_actions_report_xml.xml
-
2report_qweb_pdf_watermark/views/layout_templates.xml
@ -1,4 +1,4 @@ |
|||||
# -*- coding: utf-8 -*- |
|
||||
# © 2016 Therp BV <http://therp.nl> |
# © 2016 Therp BV <http://therp.nl> |
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
||||
|
|
||||
from . import models |
from . import models |
@ -1,20 +1,29 @@ |
|||||
# -*- coding: utf-8 -*- |
|
||||
# © 2016 Therp BV <http://therp.nl> |
# © 2016 Therp BV <http://therp.nl> |
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
||||
{ |
{ |
||||
"name": "Pdf watermark", |
"name": "Pdf watermark", |
||||
"version": "10.0.1.0.2", |
|
||||
|
"version": "11.0.1.0.0", |
||||
"author": "Therp BV, " |
"author": "Therp BV, " |
||||
"Odoo Community Association (OCA)", |
"Odoo Community Association (OCA)", |
||||
"license": "AGPL-3", |
"license": "AGPL-3", |
||||
"category": "Reporting", |
|
||||
|
"category": "Technical Settings", |
||||
"summary": "Add watermarks to your QWEB PDF reports", |
"summary": "Add watermarks to your QWEB PDF reports", |
||||
|
"website": "https://github.com/oca/reporting-engine", |
||||
"depends": [ |
"depends": [ |
||||
'report', |
|
||||
|
'web', |
||||
], |
], |
||||
"data": [ |
"data": [ |
||||
"demo/report.xml", |
"demo/report.xml", |
||||
"views/ir_actions_report_xml.xml", |
"views/ir_actions_report_xml.xml", |
||||
"views/layout_templates.xml", |
"views/layout_templates.xml", |
||||
], |
], |
||||
|
"demo": [ |
||||
|
"demo/report.xml" |
||||
|
], |
||||
|
"intallable": True, |
||||
|
'external_dependencies': { |
||||
|
'python': [ |
||||
|
'PyPDF2', |
||||
|
], |
||||
|
}, |
||||
} |
} |
@ -1,5 +1,3 @@ |
|||||
# -*- coding: utf-8 -*- |
|
||||
# © 2016 Therp BV <http://therp.nl> |
# © 2016 Therp BV <http://therp.nl> |
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
||||
from . import ir_actions_report_xml |
|
||||
from . import report |
from . import report |
@ -1,14 +0,0 @@ |
|||||
# -*- coding: utf-8 -*- |
|
||||
# © 2016 Therp BV <http://therp.nl> |
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
|
||||
from odoo import fields, models |
|
||||
|
|
||||
|
|
||||
class IrActionsReportXml(models.Model): |
|
||||
_inherit = 'ir.actions.report.xml' |
|
||||
|
|
||||
pdf_watermark = fields.Binary('Watermark') |
|
||||
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`') |
|
@ -1,4 +1,3 @@ |
|||||
# -*- coding: utf-8 -*- |
|
||||
# © 2016 Therp BV <http://therp.nl> |
# © 2016 Therp BV <http://therp.nl> |
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
||||
from . import test_report_qweb_pdf_watermark |
from . import test_report_qweb_pdf_watermark |
Write
Preview
Loading…
Cancel
Save
Reference in new issue