seitime-frappe/frappe/model
this-gavagai 8ead1d9c48
fix: Clarified docstatus transition exceptions (#15194)
* [fix] Clarified docstatus transition exceptions

Exceptions issued by the document.py `check_docstatus_transition` method are potentially very misleading. In cases where an invalid docstatus is used, users receive an confusing exception stating "Cannot change docstatus from 0 to 2" or "Cannot change docstatus from 1 to 0". 

This PR adds an additional exception message when an invalid docstatus is used.

* fix: Clarified docstatus transition exceptions

Added additional clarifications to exception messages
2021-12-06 07:28:43 +00:00
..
utils chore: Update header: license.txt => LICENSE 2021-09-03 12:02:59 +05:30
__init__.py fix(ux): validate max_attachment on doctype controller 2021-12-01 17:07:37 +05:30
base_document.py revert: "feat(minor): Implement __getitem__ in Base Document" (backport #14945) (#14946) 2021-11-11 12:13:52 +05:30
create_new.py chore: Update header: license.txt => LICENSE 2021-09-03 12:02:59 +05:30
db_query.py fix: fixed default ordering in execute 2021-11-25 16:39:44 +05:30
delete_doc.py chore: Update header: license.txt => LICENSE 2021-09-03 12:02:59 +05:30
docfield.py chore: Update header: license.txt => LICENSE 2021-09-03 12:02:59 +05:30
document.py fix: Clarified docstatus transition exceptions (#15194) 2021-12-06 07:28:43 +00:00
dynamic_links.py chore: Update header: license.txt => LICENSE 2021-09-03 12:02:59 +05:30
mapper.py chore: Update header: license.txt => LICENSE 2021-09-03 12:02:59 +05:30
meta.py fix: Table view for bench trim-tables 2021-09-14 21:53:02 +05:30
naming.py feat: add consecutive calendar week (WW) for naming series 2021-11-18 17:52:36 +01:00
rename_doc.py fix: update EPS records when renaming doc 2021-11-30 11:16:46 +05:30
sync.py docs: add docstring for import_file_by_path 2021-10-12 17:15:12 +05:30
workflow.py chore: Update header: license.txt => LICENSE 2021-09-03 12:02:59 +05:30