fix: Add __unsaved flag for newly created doc
This commit is contained in:
parent
d850a8ee4b
commit
689b68341e
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue