Browse Source

[IMP] report_qweb_pdf_watermark: black, isort, prettier

myc-14.0-py3o
fshah 4 years ago
parent
commit
1f23e335ec
  1. 4
      report_qweb_pdf_watermark/__manifest__.py
  2. 2
      report_qweb_pdf_watermark/models/report.py
  3. 1
      requirements.txt
  4. 1
      setup/report_qweb_pdf_watermark/odoo/addons/report_qweb_pdf_watermark
  5. 6
      setup/report_qweb_pdf_watermark/setup.py

4
report_qweb_pdf_watermark/__manifest__.py

@ -2,12 +2,12 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "Pdf watermark",
"version": "13.0.1.0.0",
"version": "14.0.1.0.0",
"author": "Therp BV, " "Odoo Community Association (OCA)",
"license": "AGPL-3",
"category": "Technical Settings",
"summary": "Add watermarks to your QWEB PDF reports",
"website": "https://github.com/oca/reporting-engine",
"website": "https://github.com/OCA/reporting-engine",
"depends": ["web"],
"data": [
"demo/report.xml",

2
report_qweb_pdf_watermark/models/report.py

@ -17,7 +17,7 @@ except ImportError:
logger = getLogger(__name__)
try:
from PyPDF2 import PdfFileWriter, PdfFileReader # pylint: disable=W0404
from PyPDF2 import PdfFileReader, PdfFileWriter # pylint: disable=W0404
from PyPDF2.utils import PdfReadError # pylint: disable=W0404
except ImportError:
logger.debug("Can not import PyPDF2")

1
requirements.txt

@ -1,3 +1,4 @@
# generated from manifests external_dependencies
PyPDF2
xlrd
xlsxwriter

1
setup/report_qweb_pdf_watermark/odoo/addons/report_qweb_pdf_watermark

@ -0,0 +1 @@
../../../../report_qweb_pdf_watermark

6
setup/report_qweb_pdf_watermark/setup.py

@ -0,0 +1,6 @@
import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
Loading…
Cancel
Save