Task #7761: uncloud v2
Create a view to download bills in a "human readable designed format"
- 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
Please coordinate with Mondi for the html template and Timothee for the billing model.
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.