fix: unlock document when action is executed
This commit is contained in:
parent
198bc39085
commit
33acaf7efd
1 changed files with 1 additions and 0 deletions
|
|
@ -37,6 +37,7 @@ def submit_in_background(doc: Document):
|
|||
|
||||
|
||||
def _submit_in_background(name: str, doc: Document):
|
||||
doc.unlock()
|
||||
try:
|
||||
doc.submit()
|
||||
frappe.db.set_value("Submission Queue", name, {"state": "Submitted"})
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue