Skip to content

Feat/migrate audit level to my audits child#35

Merged
Rishabh-Rahangdale merged 2 commits intoiamtalib13:version-15from
Rishabh-Rahangdale:feat/migrate-audit-level-to-my-audits-child
Feb 24, 2026
Merged

Feat/migrate audit level to my audits child#35
Rishabh-Rahangdale merged 2 commits intoiamtalib13:version-15from
Rishabh-Rahangdale:feat/migrate-audit-level-to-my-audits-child

Conversation

@Rishabh-Rahangdale
Copy link
Copy Markdown
Collaborator

No description provided.

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 .
@Rishabh-Rahangdale Rishabh-Rahangdale merged commit 29627b1 into iamtalib13:version-15 Feb 24, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant