fix: Don't set_status to 'Closed' when status is already "Closed" (#35621)
Co-authored-by: mgieger <mgieger@empirenatgas.com>
This commit is contained in:
parent
80e158b533
commit
27f104bba6
1 changed files with 1 additions and 1 deletions
|
|
@ -155,7 +155,7 @@ def close_all_assignments(doctype, name, ignore_permissions=False):
|
|||
assignments = frappe.get_all(
|
||||
"ToDo",
|
||||
fields=["allocated_to", "name"],
|
||||
filters=dict(reference_type=doctype, reference_name=name, status=("!=", "Cancelled")),
|
||||
filters=dict(reference_type=doctype, reference_name=name, status=("not in", ["Cancelled", "Closed"])),
|
||||
)
|
||||
if not assignments:
|
||||
return False
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue