Skip to content

Latest commit

 

History

History
51 lines (34 loc) · 1.06 KB

README.md

File metadata and controls

51 lines (34 loc) · 1.06 KB

Odoo Reporting Helper

ORH Command Line Tool

PyPI PyPI

Requirements

Wkhtmltopdf download page: https://wkhtmltopdf.org/downloads.html

Installation script : https://raw.githubusercontent.com/JazzCore/python-pdfkit/master/ci/before-script.sh

See options : https://wkhtmltopdf.org/usage/wkhtmltopdf.txt

Installation

Install from PyPI:

pip install odoo-reporting-helper

Quickstart

Clean and prepare HTML

orh clean <source> <destination>

Options:

  -s, --include-stylesheets  Compile and include external stylesheets in HTML
                             report.
  -j, --include-javascripts  Keep JS scripts.
  -c, --cookies TEXT         Cookies
  -l, --limit-memory         Set memory limit.

Merge stylesheets (optional)

orh merge <source> <destination>

Generate PDF

  • PDF Report :
orh convert <source> <destination> --format A3 --landscape --ignore-header --ignore-footer