fshah
4 years ago
10 changed files with 77 additions and 57 deletions
-
6report_qweb_pdf_watermark/README.rst
-
2report_qweb_pdf_watermark/__init__.py
-
19report_qweb_pdf_watermark/__manifest__.py
-
4report_qweb_pdf_watermark/demo/report.xml
-
1report_qweb_pdf_watermark/models/__init__.py
-
79report_qweb_pdf_watermark/models/report.py
-
1report_qweb_pdf_watermark/tests/__init__.py
-
1report_qweb_pdf_watermark/tests/test_report_qweb_pdf_watermark.py
-
13report_qweb_pdf_watermark/views/ir_actions_report_xml.xml
-
8report_qweb_pdf_watermark/views/layout_templates.xml
@ -1,4 +1,4 @@ |
|||
# © 2016 Therp BV <http://therp.nl> |
|||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
|||
|
|||
from . import models |
|||
from . import models # pyflakes.ignore |
@ -1,3 +1,4 @@ |
|||
# © 2016 Therp BV <http://therp.nl> |
|||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
|||
|
|||
from . import report |
@ -1,3 +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 |
@ -1,12 +1,19 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<?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="pdf_watermark" attrs="{'invisible': [('report_type', '!=', 'qweb-pdf')]}" /> |
|||
<field name="pdf_watermark_expression" attrs="{'invisible': [('report_type', '!=', 'qweb-pdf')]}" groups="base.group_no_one" /> |
|||
<field |
|||
name="pdf_watermark" |
|||
attrs="{'invisible': [('report_type', '!=', 'qweb-pdf')]}" |
|||
/> |
|||
<field |
|||
name="pdf_watermark_expression" |
|||
attrs="{'invisible': [('report_type', '!=', 'qweb-pdf')]}" |
|||
groups="base.group_no_one" |
|||
/> |
|||
</field> |
|||
</field> |
|||
</record> |
|||
|
@ -1,10 +1,12 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<?xml version="1.0" encoding="UTF-8" ?> |
|||
<odoo> |
|||
<!-- Include fix for https://github.com/odoo/odoo/issues/16610 --> |
|||
<template id="assets_pdf" inherit_id="web.report_assets_pdf"> |
|||
<link position="after"> |
|||
<link href="/report_qweb_pdf_watermark/static/src/css/report_qweb_pdf_watermark.css" |
|||
rel="stylesheet"/> |
|||
<link |
|||
href="/report_qweb_pdf_watermark/static/src/css/report_qweb_pdf_watermark.css" |
|||
rel="stylesheet" |
|||
/> |
|||
</link> |
|||
</template> |
|||
</odoo> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue