Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v13.7.0 'Student' object has no attribute 'student_category' #26745

Closed
franciscobuendiao opened this issue Jul 30, 2021 · 2 comments
Closed

v13.7.0 'Student' object has no attribute 'student_category' #26745

franciscobuendiao opened this issue Jul 30, 2021 · 2 comments
Labels
bug good first issue Good issue for beginners. valid

Comments

@franciscobuendiao
Copy link

Description of the issue

"Student Applicant" can't be enrolled. AttributeError: 'Student' object has no attribute 'student_category'.

Context information (for bug reports)

Output of bench version

ERPNext: v13.7.0 (version-13)
Frappe Framework: v13.7.0 (version-13)

Steps to reproduce the issue

  1. Validate Student Applicant.
  2. Actions > Approve. Update.
  3. Clic on "Enroll"
  4. AttributeError: 'Student' object has no attribute 'student_category'.

Observed result

Error_student_category

Stacktrace / full error message

Traceback (most recent call last):
  File "/home/frappe/frappe-bench/apps/frappe/frappe/app.py", line 68, in application
    response = frappe.api.handle()
  File "/home/frappe/frappe-bench/apps/frappe/frappe/api.py", line 55, in handle
    return frappe.handler.handle()
  File "/home/frappe/frappe-bench/apps/frappe/frappe/handler.py", line 31, in handle
    data = execute_cmd(cmd)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/handler.py", line 67, in execute_cmd
    return frappe.call(method, **frappe.form_dict)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 1172, in call
    return fn(*args, **newargs)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/model/mapper.py", line 36, in make_mapped_doc
    return method(source_name)
  File "/home/frappe/frappe-bench/apps/erpnext/erpnext/education/api.py", line 39, in enroll_student
    program_enrollment.student_category = student.student_category
AttributeError: 'Student' object has no attribute 'student_category'
@ankush ankush added the good first issue Good issue for beginners. label Sep 9, 2021
@HarshAulakh
Copy link

@ankush Is this issue still open? Would love to have a look at it as part of hacktoberfest.

@ankush
Copy link
Member

ankush commented Oct 1, 2021

This is already fixed, just not linked to PR.

#26716

@ankush ankush closed this as completed Oct 1, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug good first issue Good issue for beginners. valid
Projects
None yet
Development

No branches or pull requests

4 participants