Project

General

Profile

Actions

Task #7811

open

Task #7761: uncloud v2

Create a view to download bills in a "human readable designed format"

Added by Nico Schottelius over 1 year ago. Updated over 1 year ago.

Status:
Seen
Priority:
Normal
Target version:
-
Start date:
03/04/2020
Due date:
% Done:

0%

Estimated time:
PM Check date:

Description

  • We have an HTML design template in odoo and probably also in ungleich-billing
  • We should have a view (can be json), which lists all bills with the link to an url that shows a pdf of the bill
  • The pdf should be generated using above HTML

I would put this into a separate uncloud_web django app as part of uncloud_v2 and mount the view with the router
below web/bill.

Please coordinate with Mondi for the html template and Timothee for the billing model.

Actions #1

Updated by Nico Schottelius over 1 year ago

Plus Sanghee as a watcher

Actions #2

Updated by Ahmed Bilal over 1 year ago

  • Status changed from New to Seen
Actions #3

Updated by Ahmed Bilal over 1 year ago

Actions #4

Updated by Ahmed Bilal over 1 year ago

Tried
  • pandoc
  • xhtml2pdf
  • weasyprint
  • wkhtmltopdf

Only, weasyprint comes near to the HTML when converting to PDF, other lag too much behind.

Actions #5

Updated by Ahmed Bilal over 1 year ago

weasyprint does not correctly produce pdf when used inside django using https://pypi.org/project/django-weasyprint/.

I also tried wkhtmltopdf which seems to shrink the whole page using some stupid smart-shrinking which is enabled by default and cannot be disabled in unpatched version of QT. QT?? It mean it is not good option as we also would require QT which is quite big.

Actions #6

Updated by Ahmed Bilal over 1 year ago

  • Assignee changed from Ahmed Bilal to Nico Schottelius
Actions

Also available in: Atom PDF