From fb7630d82d1fc3dc3f7a0575528c455ed5a12cce Mon Sep 17 00:00:00 2001 From: Achilles Rasquinha Date: Fri, 2 Mar 2018 14:01:22 +0530 Subject: [PATCH] save doctypes --- frappe/modules/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/modules/utils.py b/frappe/modules/utils.py index 2f7e43ec39..94d726c16b 100644 --- a/frappe/modules/utils.py +++ b/frappe/modules/utils.py @@ -224,7 +224,7 @@ def make_boilerplate(template, doc, opts=None): with open(target_file_path, 'w') as target: with open(os.path.join(get_module_path("core"), "doctype", scrub(doc.doctype), "boilerplate", template), 'r') as source: - target.write(frappe.utils.encode( + target.write(frappe.as_unicode( frappe.utils.cstr(source.read()).format( app_publisher=app_publisher, year=frappe.utils.nowdate()[:4],