save doctypes
This commit is contained in:
parent
4cd08787f2
commit
fb7630d82d
1 changed files with 1 additions and 1 deletions
|
|
@ -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],
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue