Feat/migrate audit level to my audits child#35
Merged
Rishabh-Rahangdale merged 2 commits intoiamtalib13:version-15from Feb 24, 2026
Merged
Conversation
This commit introduces a new Frappe patch to migrate stage-related employee and email information from the individual fields of 'Audit Level' documents to the 'audit_stages' child table within 'My Audits' documents. The patch ensures: - Stage levels 1-8 are created and sorted correctly within the child table. - Email fields remain editable in the child table. - The patch is idempotent and secure. - Existing functionality dependent on the old individual fields remains undisturbed, as the patch only populates the new child table without removing or altering the original fields or associated logic in my_audits.py/js/json. This sets the stage for future refactoring to fully utilize the child table structure. Files modified: - audit_management/patches/migrate_audit_level_to_my_audits_child.py (new patch file) - audit_management/patches.txt (updated to include the new patch) - audit_management/audit_management/doctype/my_audits/my_audits.json (minor metadata updates due to Frappe's internal processes)
…s schema This commit includes: - Integration of function into to automatically populate the child table in 'My Audits' documents on save. - Schema update for DocType () to include new fields: , , and .
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.