Skip to content

feat: add School (campus/branch) doctype + Student school/reference_number fields#436

Open
ankitpatil-ap wants to merge 1 commit into
frappe:developfrom
ankitpatil-ap:feat-school-doctype
Open

feat: add School (campus/branch) doctype + Student school/reference_number fields#436
ankitpatil-ap wants to merge 1 commit into
frappe:developfrom
ankitpatil-ap:feat-school-doctype

Conversation

@ankitpatil-ap

Copy link
Copy Markdown

What

Adds a generic, dependency-free School (campus/branch) doctype to Education, plus three fields on Student:

  • School doctype — school (name / autoname), description, location. No links to ERPNext (Company/Warehouse) and no region-specific fields, so Education gains no new app dependency.
  • Student.school — Link → School
  • Student.reference_number — Data (external / library-card identifier)
  • Student.program — Link → Program (convenience field; see note)

Why

Multi-campus schools need a branch/campus master and a way to tag a Student with their branch and an external reference number. Today this gets re-implemented as custom fields in every project. I built an open-source school library circulation app on top of Education that reads these fields, and the generic pieces belong in Education so any school benefits.

Note on Student.program

Education models program membership via Program Enrollment. I included a direct Student.program link as a convenience because downstream apps read it directly — but I'm happy to drop it and rely on Program Enrollment if you'd prefer. Likewise, School is intentionally minimal and I'm happy to rename it (Campus/Branch) if that fits better.

Testing

  • bench --site <site> migrate syncs the School doctype and the new Student fields.
  • Added a TestSchool stub; happy to expand coverage as guided.

Happy to open a separate discussion/issue first if the team prefers that for new doctypes.

…/program fields

Signed-off-by: ankitpatil-ap <ankitpatil.v@gmail.com>
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