Merge branch 'update-cypress' of https://github.com/surajshetty3416/frappe into update-cypress

This commit is contained in:
Suraj Shetty 2020-04-25 12:52:22 +05:30
commit 01246db252

View file

@ -268,6 +268,10 @@ class Document(BaseDocument):
if hasattr(self, "__islocal"):
delattr(self, "__islocal")
# clear unsaved flag
if hasattr(self, "__unsaved"):
delattr(self, "__unsaved")
if not (frappe.flags.in_migrate or frappe.local.flags.in_install or frappe.flags.in_setup_wizard):
follow_document(self.doctype, self.name, frappe.session.user)
return self