seitime-frappe/frappe/model
Maharshi Patel 53cdd6d1bf fix: relink attachments before saving doc
Certain people add attachment, before filling mandatory fields
which will raise Missing Fields error.

Or any other kind of errors raised by different validators due to which
file is uploaded but doc is not saved.

This will lead to orphaned/mislinked files. ex. new-purchase-receipt-1

This fix changes name of new docs to new-<doctype>-<no>-<10digithash>
after saving the document we can use this new name to find any mislinked
files created in past hour and relink them to the new doc on save.
2023-10-10 23:49:16 +05:30
..
utils perf: ignore log links and disable in background jobs 2023-08-18 17:47:58 +05:30
__init__.py refactor!: remove implicit primary key from logs (#22209) 2023-08-26 16:01:47 +05:30
base_document.py style: use functools.cached_property (#22304) 2023-09-04 16:50:25 +05:30
create_new.py refactor: Add a maxsplit limit to string splits 2023-01-24 19:22:51 +05:30
db_query.py refactor: for append to extend, merge list extend 2023-08-09 13:25:39 +02:00
delete_doc.py fix(delete_doc): Check ignore_links_on_delete with parent doctype (#20898) 2023-05-16 09:04:00 +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: relink attachments before saving doc 2023-10-10 23:49:16 +05:30
dynamic_links.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
mapper.py fix!: Last overriden method should be considered 2023-09-25 16:35:12 +05:30
meta.py Merge pull request #22104 from GursheenK/doc-comparator 2023-09-13 14:04:15 +05:30
naming.py refactor!: remove implicit primary key from logs (#22209) 2023-08-26 16:01:47 +05:30
rename_doc.py fix: dont allow rename+merge for case changes 2023-08-29 18:03:16 +05:30
sync.py fix: Ignore all non-import exceptions 2023-09-15 16:22:09 +05:30
virtual_doctype.py fix(DX): validate virtual doctype controllers 2022-12-13 14:18:19 +05:30
workflow.py refactor: Simpler workflow caching 2023-07-19 16:45:44 +05:30