mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-16 10:20:31 +00:00
Fetch defaults in purchase common and sales common related doctypes and fix minor utf-8 issues
This commit is contained in:
@@ -94,8 +94,9 @@ class DocType:
|
||||
|
||||
from webnotes.utils import file_manager
|
||||
fn, content = file_manager.get_file(filename[1])
|
||||
|
||||
if not type(content) == str:
|
||||
|
||||
# NOTE: Don't know why this condition exists
|
||||
if not isinstance(content, basestring) and hasattr(content, 'tostring'):
|
||||
content = content.tostring()
|
||||
|
||||
import webnotes.model.import_docs
|
||||
|
||||
Reference in New Issue
Block a user