Configure Grade Templates
Configure Grade Templates
Set up grading templates with weightage rules for assignments, attendance, and academic terms.
Time required: 15-20 minutes
Prerequisites
- Grading Manager role
- Academic years and terms configured
- Assignment types defined
Concepts
Grade Template Purpose
Templates define how final grades are calculated by specifying:
- Which academic periods to include
- How to weight different assignment types
- Whether attendance affects grades
- Sub-term weightage distribution
Weightage Types
| Type | Description |
|---|---|
| Sub Term | Weight quarters/semesters differently |
| Assignment Type | Weight homework, quizzes, exams differently |
| Attendance | Include attendance in grade calculation |
Create a Grade Template
Step 1: Navigate to Templates
- Go to Grading → Configuration → Grade Templates
- Click Create
Step 2: Enter Template Details
| Field | Required | Description |
|---|---|---|
| Name | Yes | Template name |
| Company | No | Multi-company assignment |
Step 3: Add Template Lines
In the Template Lines section, click Add a line:
| Field | Required | Description |
|---|---|---|
| Academic Year | Yes | Target year |
| Academic Term | No | Specific term (optional) |
| Weightage Type | Yes | sub_term, assignment_type, or attendance |
Step 4: Configure Weightage Details
Based on weightage type:
Sub-Term Weightage
Add sub-term weight lines:
| Sub-Term | Weightage % |
|---|---|
| Q1 | 25 |
| Q2 | 25 |
| Q3 | 25 |
| Q4 | 25 |
Assignment Type Weightage
Add assignment type weight lines:
| Assignment Type | Weightage % |
|---|---|
| Homework | 20 |
| Quizzes | 20 |
| Midterm | 25 |
| Final Exam | 35 |
Attendance Weightage
Add attendance weight lines:
| Attendance Type | Weightage % |
|---|---|
| Present | 100 |
| Late | 80 |
| Absent Excused | 50 |
| Absent | 0 |
Step 5: Activate Template
- Click Activate button
- State changes from “Draft” to “Active”
Template Examples
Standard Academic Year Template
Template: "Standard Year Grading"└── Line 1: Academic Year 2024-25 ├── Weightage: Assignment Type └── Weights: ├── Homework: 15% ├── Quizzes: 15% ├── Projects: 20% ├── Midterm: 20% └── Final: 30%Semester-Weighted Template
Template: "Semester Weighted"└── Line 1: Academic Year 2024-25 ├── Weightage: Sub Term └── Weights: ├── Semester 1: 40% └── Semester 2: 60%Attendance-Inclusive Template
Template: "With Attendance"├── Line 1: Assignment Type│ └── Weights: Standard assignments└── Line 2: Attendance Type └── Weights: Present=100, Late=80, Absent=0Assign Template to Course/Subject
Course-Level Assignment
- Go to Courses → select course
- Add template to Grade Templates field
- All subjects inherit course template
Subject-Level Assignment
- Go to Courses → Subjects → select subject
- Uncheck Use Default Template
- Add specific templates to Grade Templates field
Template Validation
Term Validation Rules
- Academic term must belong to selected academic year
- Term cannot be a parent term (use child terms)
Error Messages
| Error | Cause | Solution |
|---|---|---|
| ”Term not in year” | Term doesn’t match year | Select matching term |
| ”Cannot use parent term” | Selected parent instead of child | Choose specific sub-term |
Template Workflow
┌───────┐ ┌────────┐│ Draft │───▶│ Active │└───────┘ └────────┘ ▲ │ └────────────┘Grade Calculation Logic
When grades are calculated:
- System finds applicable template for course/subject
- Retrieves all gradebook lines for student
- Groups by academic year, term, subject
- Applies weightage rules from template
- Computes weighted averages
- Determines final grade from grade scale
Calculation Formula
Subject Grade = Σ(Assignment Score × Type Weight) / Σ(Type Weights)Term Grade = Σ(Subject Grade × Subject Credits) / Σ(Credits)Year Grade = Σ(Term Grade × Term Weight) / Σ(Term Weights)Field Reference
Grade Template (op.grade.template)
| Technical Field | UI Label | Type | Notes |
|---|---|---|---|
name | Name | Char | Required, unique |
template_line_ids | Template Lines | One2many | Required |
state | Status | Selection | draft/active |
company_id | Company | Many2one | Multi-company |
Grade Template Line (op.grade.template.line)
| Technical Field | UI Label | Type | Notes |
|---|---|---|---|
academic_years_id | Academic Year | Many2one | Required |
academic_term_id | Term | Many2one | Optional filter |
weightage | Weightage Type | Selection | sub_term/assignment_type/attendance |
subterm_weight_ids | Sub-term Weights | One2many | For sub_term type |
assignment_type_weight_ids | Assignment Weights | One2many | For assignment_type |
attendance_type_weight_ids | Attendance Weights | One2many | For attendance type |
Weight Line Models
| Model | Fields |
|---|---|
subterm.weight.line | academic_sub_term_id, weightage |
assignment.type.weight.line | assignment_type_id, weightage |
attendance.weight.line | attendance_type (selection), weightage |
Troubleshooting
Template not available for course
Check:
- Template state is “Active”
- Template added to course’s Grade Templates field
- Company matches course company
Grades not calculating correctly
Verify:
- All weightages sum to 100%
- Assignment types match gradebook entries
- No missing template lines for terms
Cannot modify active template
Templates in “Active” state are locked:
- Click Set to Draft
- Make changes
- Re-activate
Related: Configure Grade Scales | Enter Grades