fix: Add __unsaved flag for newly created doc

This commit is contained in:
Suraj Shetty 2020-04-28 14:07:29 +05:30
parent d850a8ee4b
commit 689b68341e

View file

@ -45,6 +45,7 @@ def make_new_doc(doctype):
doc = doc.get_valid_dict(sanitize=False)
doc["doctype"] = doctype
doc["__islocal"] = 1
doc["__unsaved"] = 1
return doc