Encode letterhead filename (#12525)

This commit is contained in:
Faris Ansari 2018-01-18 09:28:13 +05:30 committed by Nabin Hait
parent f1b098e03c
commit 00e547d319

View File

@ -40,7 +40,7 @@ def create_customers(args_data):
@frappe.whitelist()
def create_letterhead(args_data):
args = json.loads(args_data)
letterhead = args.get("letterhead")
letterhead = args.get("letterhead").encode('utf-8')
if letterhead:
try:
frappe.get_doc({