frappe / helm

Helm Chart Repository for Frappe/ERPNext
https://helm.erpnext.com
MIT License
138 stars 120 forks source link

PDF printing documents "Get PDF" #195

Closed not-Ryan closed 8 months ago

not-Ryan commented 11 months ago

Description of the issue

Print of documents gets a weird layout and get pdf at the top.

Context information (for bug reports)

Code that prints it?

The HTML from public works splendidly. However when I print (with pdfprint) it fails like so.

Steps to reproduce the issue

  1. Deploy helm with custom_app built image on v15.4.1.
  2. Restore backup from old site.
  3. Create a quotation or any document.
  4. Email or print that document

Observed result

Screenshot 2023-12-07 at 12-11-56 SAL-QTN-2023-00001 pdf

Expected result

Screenshot 2023-12-07 at 12-14-03 Master Annick Smithers - SAL-QTN-2023-00001

revant commented 10 months ago

adding "host_name": "https://erp.site.com" to site_config.json solved it for me. In my case site name and host header is same.

github-actions[bot] commented 8 months ago

This issue has been automatically marked as stale. You have a week to explain why you believe this is an error.