fix!: Enqueue action after commit
This commit is contained in:
parent
bf449e8207
commit
68a78d33d3
1 changed files with 5 additions and 0 deletions
|
|
@ -1536,11 +1536,16 @@ class Document(BaseDocument):
|
|||
primary_action=primary_action,
|
||||
)
|
||||
|
||||
enqueue_after_commit = kwargs.pop("enqueue_after_commit", None)
|
||||
if enqueue_after_commit is None:
|
||||
enqueue_after_commit = True
|
||||
|
||||
return enqueue(
|
||||
"frappe.model.document.execute_action",
|
||||
__doctype=self.doctype,
|
||||
__name=self.name,
|
||||
__action=action,
|
||||
enqueue_after_commit=enqueue_after_commit,
|
||||
**kwargs,
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue