seitime-frappe/frappe/model
Ankush Menat 9b8a8c155d
fix: Correct logic for can_cancel (#24196)
You can cancel a document IFF:
- Document has no workflow
- Document has workflow but it doesn't have state with docstatus=2.

closes https://github.com/frappe/frappe/issues/19075
2024-01-08 19:15:19 +05:30
..
utils docs: consistent doc strings 2023-12-18 18:27:39 +05:30
__init__.py fix: Allowed standard fields in data export ( creation, owner) (#24187) 2024-01-08 17:09:13 +05:30
base_document.py docs: consistent doc strings 2023-12-18 18:27:39 +05:30
create_new.py refactor: simplify conditional logic 2023-12-05 11:14:41 +01:00
db_query.py perf: skip ifnull checks on modified field (#24042) 2023-12-30 06:39:32 +00:00
delete_doc.py fix: don't allow deleting original doc if amendment exists 2023-12-20 13:11:34 +05:30
docfield.py chore!: dead code (#19551) 2023-01-10 18:53:08 +05:30
docstatus.py feat: utility methods for docstatus (#15515) 2022-02-04 07:41:25 +00:00
document.py fix(document): Pass parent_doc and parentfield in _set_defaults 2023-12-23 20:40:52 +01:00
dynamic_links.py fix: ignore dynamic fields in virtual doctypes 2023-11-23 14:49:28 +05:30
mapper.py perf: Use set for tracking whitelisted methods (#23905) 2023-12-21 23:19:06 +05:30
meta.py Merge pull request #23827 from frappe/api-docs 2023-12-21 12:13:05 +05:30
naming.py docs: consistent doc strings 2023-12-18 18:27:39 +05:30
rename_doc.py docs: consistent doc strings 2023-12-18 18:27:39 +05:30
sync.py fix: skip overriden doctypes during orphan check (#23518) 2023-11-30 11:33:42 +00:00
virtual_doctype.py fix(DX): validate virtual doctype controllers 2022-12-13 14:18:19 +05:30
workflow.py fix: Correct logic for can_cancel (#24196) 2024-01-08 19:15:19 +05:30