Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion education_attendances/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,6 @@ <h4><i class="fa fa-phone"></i> Contact Us </h4>
<a href="https://www.cybrosys.com/contact/" target="_blank"> www.cybrosys.com</a>
</div>
</div>
Suggested Products
</center>
</section>
<section class="oe_container" style="padding: 0% 0% 6% 0%;">
Expand Down
2 changes: 1 addition & 1 deletion education_core/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
###############################################################################
{
'name': 'Educational ERP Core',
'version': '14.0.1.0.1',
'version': '14.0.1.0.2',
'summary': """Core Module of Educational ERP""",
'description': 'Core Module of Educational ERP',
'category': 'Educational',
Expand Down
1 change: 1 addition & 0 deletions education_core/models/education_class_division.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ def _get_student_count(self):
string='Amenities')
student_count = fields.Integer(string='Students Count',
compute='_get_student_count')
active = fields.Boolean(string="Active", default=True)

@api.constrains('actual_strength')
def validate_strength(self):
Expand Down
1 change: 0 additions & 1 deletion education_core/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,6 @@ <h4><i class="fa fa-phone"></i> Contact Us </h4>
<a href="https://www.cybrosys.com/contact/" target="_blank"> www.cybrosys.com</a>
</div>
</div>
Suggested Products
</center>
</section>
<section class="oe_container" style="padding: 0% 0% 6% 0%;">
Expand Down
2 changes: 1 addition & 1 deletion education_exam/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

{
'name': 'Educational Exam Management',
'version': '14.0.1.0.0',
'version': '14.0.1.0.1',
'summary': """Sneak the Examination management in Educational ERP""",
'description': 'An easy way to handle the examinations in an educational '
'system with better reports and exam valuation and exam result '
Expand Down
1 change: 0 additions & 1 deletion education_exam/models/examination.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ class EducationExam(models.Model):
default='draft')
academic_year = fields.Many2one('education.academic.year',
string='Academic Year',
related='division_id.academic_year_id',
store=True)
company_id = fields.Many2one(
'res.company', string='Company',
Expand Down
1 change: 1 addition & 0 deletions education_exam/security/ir.model.access.csv
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ access_results_subject_line,access.results.subject.line,education_exam.model_res
access_education_exam_valuation,access.education.exam.valuation,education_exam.model_education_exam_valuation,education_core.group_education_faculty,1,1,1,0
access_exam_valuation_line,access.exam.valuation.line,education_exam.model_exam_valuation_line,education_core.group_education_faculty,1,1,1,0
access_education_exam,access.education.exam,education_exam.model_education_exam,education_core.group_education_faculty,1,1,1,0
access_education_exam_principal,access.education.exam.principal,education_exam.model_education_exam,education_core.group_education_principal,1,1,1,1
access_education_subject_line,access.education.subject.line,education_exam.model_education_subject_line,education_core.group_education_faculty,1,1,1,0
access_education_exam_type,access.education.exam.type,education_exam.model_education_exam_type,education_core.group_education_faculty,1,1,1,0
1 change: 0 additions & 1 deletion education_exam/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,6 @@ <h4><i class="fa fa-phone"></i> Contact Us </h4>
<a href="https://www.cybrosys.com/contact/" target="_blank"> www.cybrosys.com</a>
</div>
</div>
Suggested Products
</center>
</section>
<section class="oe_container" style="padding: 0% 0% 6% 0%;">
Expand Down
1 change: 1 addition & 0 deletions education_exam/views/exam_results.xml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
<field name="student_name"/>
<field name="class_id"/>
<field name="division_id"/>
<field name="overall_pass"/>
<field name="academic_year" invisible="1"/>
</tree>
</field>
Expand Down
2 changes: 1 addition & 1 deletion education_exam/views/examination.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<field name="division_id"
attrs="{'readonly': [('state', '!=', 'draft')], 'invisible': [('school_class_division_wise', 'not in', ['division'])], 'required': [('school_class_division_wise', 'in', ['division'])]}"/>
<field name="academic_year"
attrs="{'readonly': [('state', '!=', 'draft')], 'invisible': ['|', ('school_class_division_wise', 'in', ['division']), ('exam_type', '=', False)], 'required': [('division_id', '=', False)]}"/>
attrs="{'readonly': [('state', '!=', 'draft')], 'invisible': [('exam_type', '=', False)], 'required': [('division_id', '=', False)]}"/>
<field name="school_class_division_wise" invisible="1"/>
<field name="class_division_hider" invisible="1"/>
</group>
Expand Down
51 changes: 51 additions & 0 deletions education_promotion/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
Educational Promotion V14
=========================

Promotion of students after each academic year.

Contacts
========
* EducationalERP <http://educationalerp.com/>
* Cybrosys Techno Solutions <https://www.cybrosys.com>

Depends
=======
[education_exam] addon Cybrosys

Tech
====
* [Python] - Models
* [XML] - Odoo views

Installation
============
- www.odoo.com/documentation/14.0/setup/install.html
- Install our custom addon

License
=======
GNU AFFERO GENERAL PUBLIC LICENSE, Version 3 (AGPLv3)
(http://www.gnu.org/licenses/agpl.html)

Bug Tracker
===========
Bugs are tracked on GitHub Issues. In case of trouble,
please check there if your issue has already been reported.
Contact [email protected]

Credits
=======
* Cybrosys Techno Solutions <https://www.cybrosys.com>

Author
------

Developers: Hajaj Roshan <[email protected]>


Maintainer
----------

This module is maintained by Cybrosys Technologies.

For support and more information, please visit https://www.cybrosys.com.
24 changes: 24 additions & 0 deletions education_promotion/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# -*- coding: utf-8 -*-
###############################################################################
# A part of Educational ERP Project <https://www.educationalerp.com>
#
# Cybrosys Technologies Pvt. Ltd.
# Copyright (C) 2021-TODAY Cybrosys Technologies (<https://www.cybrosys.com>)
# Author: Hajaj Roshan([email protected])
#
# This program is free software: you can modify
# it under the terms of the GNU Affero General Public License (AGPL) as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
###############################################################################

from . import models
46 changes: 46 additions & 0 deletions education_promotion/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# -*- coding: utf-8 -*-
###############################################################################
# A part of Educational ERP Project <https://www.educationalerp.com>
#
# Cybrosys Technologies Pvt. Ltd.
# Copyright (C) 2021-TODAY Cybrosys Technologies (<https://www.cybrosys.com>)
# Author: Hajaj Roshan([email protected])
#
# This program is free software: you can modify
# it under the terms of the GNU Affero General Public License (AGPL) as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
###############################################################################
{
'name': 'Educational Promotion',
'version': '14.0.1.0.0',
'summary': 'Promotion of students after each Academic year',
'description': 'Promotion of students after each Academic year',
'category': 'Industries',
'author': 'Cybrosys Techno Solutions',
'company': 'Cybrosys Techno Solutions',
'maintainer': 'Cybrosys Techno Solutions',
'website': "https://www.educationalerp.com",
'depends': ['education_exam'],
'data': [
'security/ir.model.access.csv',
'views/education_promotion.xml',
'views/academic_year_closing.xml',
'views/student_history.xml',
],
'images': ['static/description/banner.png'],
'license': 'AGPL-3',
'demo': [],
'installable': True,
'auto_install': False,
'application': False,
}
6 changes: 6 additions & 0 deletions education_promotion/doc/RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
## Module education_promotion

#### 31.05.2021
#### Version 14.0.1.0.0
##### ADD
- Initial commit for Educational ERP Project
25 changes: 25 additions & 0 deletions education_promotion/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# -*- coding: utf-8 -*-
###############################################################################
# A part of Educational ERP Project <https://www.educationalerp.com>
#
# Cybrosys Technologies Pvt. Ltd.
# Copyright (C) 2021-TODAY Cybrosys Technologies (<https://www.cybrosys.com>)
# Author: Hajaj Roshan([email protected])
#
# This program is free software: you can modify
# it under the terms of the GNU Affero General Public License (AGPL) as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
###############################################################################

from . import education_promotion
from . import academic_year_closing
83 changes: 83 additions & 0 deletions education_promotion/models/academic_year_closing.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
# -*- coding: utf-8 -*-
###############################################################################
# A part of Educational ERP Project <https://www.educationalerp.com>
#
# Cybrosys Technologies Pvt. Ltd.
# Copyright (C) 2021-TODAY Cybrosys Technologies (<https://www.cybrosys.com>)
# Author: Hajaj Roshan([email protected])
#
# This program is free software: you can modify
# it under the terms of the GNU Affero General Public License (AGPL) as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
###############################################################################

from odoo import models, fields, api, _
from odoo.exceptions import UserError


class AcademicYearClosing(models.Model):
_inherit = 'education.class.division'

is_last_class = fields.Boolean(
string="Is Last Class",
help="Enable this option to set this class as last class")
promote_class = fields.Many2one('education.class', string='Promotion Class')
promote_division = fields.Many2one('education.division',
string='Promotion Division')
students_details = fields.One2many('education.student.final.result',
'division_id',
string='Student Final Result')

@api.model
def create(self, vals):
"""Return the name as a str of class + division"""
try:
if vals['class_id']:
class_id = self.env['education.class'].browse(vals['class_id'])
division_id = self.env['education.division'].browse(
vals['division_id'])
elif vals['promote_class']:
class_id = self.env['education.class'].browse(vals['promote_class'])
division_id = self.env['education.division'].browse(
vals['promote_division'])
name = str(class_id.name + '-' + division_id.name)
vals['name'] = name
except:
raise UserError(_('Something Went Wrong. Contact Your'
'System Administrator'))
return super(AcademicYearClosing, self).create(vals)


class EducationStudentFinalResult(models.Model):
_name = 'education.student.final.result'

student_id = fields.Many2one('education.student', string="Student")
final_result = fields.Selection([
('na', 'Not Applicable'),
('pass', 'Pass'),
('fail', 'Fail'), ],
string="Final Result", default='na')
division_id = fields.Many2one('education.class.division', string="Class")
academic_year = fields.Many2one('education.academic.year',
string='Academic Year')
closing_id = fields.Many2one('education.promotion', string='Academic Year')


class StudentPromotion(models.Model):
_inherit = 'education.student'

final_result = fields.Selection([
('na', 'Not Applicable'),
('pass', 'Pass'),
('fail', 'Fail'), ],
string="Final Result", default='na')
Loading