|
|
@@ -58,6 +58,8 @@ class Document(BaseDocument): |
|
|
|
all values (including child documents) from the database. |
|
|
|
""" |
|
|
|
self.doctype = self.name = None |
|
|
|
self._default_new_docs = {} |
|
|
|
self.flags = frappe._dict() |
|
|
|
|
|
|
|
if arg1 and isinstance(arg1, basestring): |
|
|
|
if not arg2: |
|
|
@@ -83,9 +85,6 @@ class Document(BaseDocument): |
|
|
|
# incorrect arguments. let's not proceed. |
|
|
|
raise frappe.DataError("Document({0}, {1})".format(arg1, arg2)) |
|
|
|
|
|
|
|
self._default_new_docs = {} |
|
|
|
self.flags = frappe._dict() |
|
|
|
|
|
|
|
def reload(self): |
|
|
|
"""Reload document from database""" |
|
|
|
self.load_from_db() |
|
|
|