Hi all,
today I tried using the new weasyprint endpoint (/api/method/frappe.utils.weasyprint.download_pdf
), which worked perfectly, but only in older print formats. More recently created print formats gave me this error:
I looked at the Frappe source and my DB and noticed that newer print formats (I recently upgraded to ERPNext/Frappe 15, but even those created in 14 have this) have a JSON array instead of an object in the format_data
column:
The code seems able to only deal with objects, not the array-based format. What is the cause of this and how do I fix it? At first glance it looks like the code is out of date but I find that hard to believe…