feat: set restore flag on document before inserting during restore (#35363)
This commit is contained in:
parent
473d385942
commit
eec058ffe6
1 changed files with 1 additions and 1 deletions
|
|
@ -45,7 +45,7 @@ def restore(name, alert=True):
|
|||
frappe.throw(_("Document {0} Already Restored").format(name), exc=frappe.DocumentAlreadyRestored)
|
||||
|
||||
doc = frappe.get_doc(json.loads(deleted.data))
|
||||
|
||||
doc.flags.from_restore = True
|
||||
try:
|
||||
doc.insert()
|
||||
except frappe.DocstatusTransitionError:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue