I would like to say that thank you for build this community with ERPNext and get a lot advantage to developers or sysadmins (like me) giving that extra mile that our customers needs.
I have been playing a bit with print format in the delivery note section recently due a request from one of my customers, and I have some issues or although not fully understood this behaviour.
The delivery note I haven’t customised, and only what I customised is the print format with the new feature print building, when I finished everything was okay except one thing, only the system allowed me to export this Delivery Note on PDF and not in print option, when I click in a print option I receive a 500 error with traceback logs from the server where I am going to past it in the comments below.
I would love if someone can guide me what it could be wrong as I am not really good at JS and it’s hard to me to imprete this kind of behaviours. Thanks in advance!
If you don’t know what just happened, and wish to file a ticket please
copy the error below and share it.
Traceback (most recent call last):
File “apps/frappe/frappe/website/serve.py”, line 20, in get_response
response = renderer_instance.render()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File “apps/frappe/frappe/website/page_renderers/template_page.py”, line 84, in render
html = self.get_html()
^^^^^^^^^^^^^^^
File “apps/frappe/frappe/website/utils.py”, line 531, in cache_html_decorator
html = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File “apps/frappe/frappe/website/page_renderers/template_page.py”, line 95, in get_html
self.update_context()
File “apps/frappe/frappe/website/page_renderers/template_page.py”, line 163, in update_context
data = self.run_pymodule_method(“get_context”)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “apps/frappe/frappe/website/page_renderers/template_page.py”, line 223, in run_pymodule_method
return method(self.context)
^^^^^^^^^^^^^^^^^^^^
File “apps/frappe/frappe/www/printview.py”, line 56, in get_context
body = get_rendered_template(
^^^^^^^^^^^^^^^^^^^^^^
File “apps/frappe/frappe/www/printview.py”, line 165, in get_rendered_template
format_data_map[df.get(“fieldname”)] = df
^^^^^^
AttributeError: ‘str’ object has no attribute ‘get’