Hi guys,
I've been working to create custom Print Template. But by following the code in the example:
frappe.db.get_value("[doctype]", "[name]", "fieldname")
It gave me some error:
File "<template>", line 189, in top-level template code
File "/home/erpnext/frappe-bench/env/local/lib/python2.7/site-packages/jinja2/environment.py", line 397, in getattr
return getattr(obj, attribute)
UndefinedError: 'dict object' has no attribute 'db'
frappe.get_doc is working fine but the documentation seems unsynced
Thanks
–
- Please be kind and don't send large attachments
- For issues, features requests use https://github.com/frappe/erpnext/issues
—
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/710e6a1d-8699-4154-a6aa-d009523bd82f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.