@ -0,0 +1,41 @@ |
|||||
|
.. image:: https://img.shields.io/badge/license-LGPL--3-blue.svg |
||||
|
:target: https://www.gnu.org/licenses/lgpl-3.0-standalone.html |
||||
|
:alt: License: lGPL-3 |
||||
|
|
||||
|
Music School Institute |
||||
|
======================= |
||||
|
* A Complete Solution for Music School Institute. |
||||
|
|
||||
|
Configuration |
||||
|
============= |
||||
|
* No additional configuration is needed. |
||||
|
|
||||
|
License |
||||
|
------- |
||||
|
General Public License, Version 3 (LGPL v3). |
||||
|
(https://www.gnu.org/licenses/lgpl-3.0-standalone.html) |
||||
|
|
||||
|
Company |
||||
|
------- |
||||
|
* `Cybrosys Techno Solutions <https://cybrosys.com/>`__ |
||||
|
|
||||
|
Credits |
||||
|
------- |
||||
|
* Developer: (V16) Vishnu kp, Contact: odoo@cybrosys.com |
||||
|
|
||||
|
Bug Tracker |
||||
|
----------- |
||||
|
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. |
||||
|
|
||||
|
Maintainer |
||||
|
========== |
||||
|
.. image:: https://cybrosys.com/images/logo.png |
||||
|
:target: https://cybrosys.com |
||||
|
This module is maintained by Cybrosys Technologies. |
||||
|
|
||||
|
For support and more information, please visit https://www.cybrosys.com |
||||
|
|
||||
|
Further information |
||||
|
=================== |
||||
|
HTML Description: `<static/description/index.html>`__ |
||||
|
|
@ -0,0 +1,22 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
||||
|
# Author: Vishnu K P (<https://www.cybrosys.com>) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU LESSER |
||||
|
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
||||
|
# |
||||
|
# 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
||||
|
# (LGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################# |
||||
|
from . import models |
@ -0,0 +1,51 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
||||
|
# Author: Vishnu K P (<https://www.cybrosys.com>) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU LESSER |
||||
|
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
||||
|
# |
||||
|
# 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
||||
|
# (LGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################# |
||||
|
{ |
||||
|
"name": "Music School Institute", |
||||
|
"version": "16.0.1.0.0", |
||||
|
"category": "Industries", |
||||
|
"summary": "Efficiently manage teachers, students, classes, attendance, " |
||||
|
"fees, and more with our Music School Management module. ", |
||||
|
"description": """Simplify music school operations with this comprehensive |
||||
|
Odoo module. Manage teachers and students, track attendance, handle fees, |
||||
|
and plan events effortlessly. Stay organized and focus on nurturing |
||||
|
musical talent.""", |
||||
|
"author": "Cybrosys Techno Solutions", |
||||
|
"company": "Cybrosys Techno Solutions", |
||||
|
"maintainer": "Cybrosys Techno Solutions", |
||||
|
"website": "https://www.cybrosys.com", |
||||
|
"depends": ["base", "stock", "sale", "calendar", "event", "hr"], |
||||
|
"data": [ |
||||
|
"security/ir.model.access.csv", |
||||
|
"views/class_type_views.xml", |
||||
|
"views/res_partner_views.xml", |
||||
|
"views/product_template_views.xml", |
||||
|
"views/hr_employee_views.xml", |
||||
|
"views/class_lesson_views.xml", |
||||
|
"views/students_attendance_views.xml", |
||||
|
], |
||||
|
"license": "LGPL-3", |
||||
|
"images": ["static/description/banner.jpg"], |
||||
|
"installable": True, |
||||
|
"auto_install": False, |
||||
|
"application": False, |
||||
|
} |
@ -0,0 +1,7 @@ |
|||||
|
## Module <music_school_institute> |
||||
|
|
||||
|
#### 13.12.2023 |
||||
|
#### Version 16.0.1.0.0 |
||||
|
##### ADD |
||||
|
|
||||
|
- Initial Commit for Music School Institute |
@ -0,0 +1,28 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
||||
|
# Author: Vishnu K P (<https://www.cybrosys.com>) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU LESSER |
||||
|
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
||||
|
# |
||||
|
# 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
||||
|
# (LGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################# |
||||
|
from . import class_lesson |
||||
|
from . import class_type |
||||
|
from . import hr_employee |
||||
|
from . import product_template |
||||
|
from . import res_partner |
||||
|
from . import service_type |
||||
|
from . import students_attendance |
@ -0,0 +1,37 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
||||
|
# Author: Vishnu K P (<https://www.cybrosys.com>) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU LESSER |
||||
|
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
||||
|
# |
||||
|
# 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
||||
|
# (LGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################## |
||||
|
from odoo import fields, models |
||||
|
|
||||
|
|
||||
|
class ClassLesson(models.Model): |
||||
|
"""Class is used to represent the lessons.""" |
||||
|
_name = 'class.lesson' |
||||
|
_description = 'Class Lesson' |
||||
|
|
||||
|
name = fields.Char(string='Name', help='Name of the lesson.') |
||||
|
hours = fields.Char(string='Hours', help='Hours of the lesson.') |
||||
|
teacher_id = fields.Many2one('hr.employee', string='Teacher', |
||||
|
domain=[('teacher', '=', True)], |
||||
|
help='Teacher assigned to the lesson.') |
||||
|
relation_id = fields.Many2one('class.type', |
||||
|
string='Relation ID', |
||||
|
help='Relation to the corresponding class.') |
@ -0,0 +1,135 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
||||
|
# Author: Vishnu K P (<https://www.cybrosys.com>) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU LESSER |
||||
|
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
||||
|
# |
||||
|
# 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
||||
|
# (LGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################# |
||||
|
from datetime import timedelta |
||||
|
from odoo import api, fields, models |
||||
|
|
||||
|
|
||||
|
class ClassType(models.Model): |
||||
|
"""Class is used to create the music class records.""" |
||||
|
_name = 'class.type' |
||||
|
_description = 'Class Type' |
||||
|
|
||||
|
name = fields.Char(string='Name', help='Class name.') |
||||
|
from_date = fields.Date(string='From', help='Class starting date.') |
||||
|
to_date = fields.Date(string='To', help='Class ending date.') |
||||
|
duration = fields.Integer(string='Duration', compute='_compute_duration', |
||||
|
store=True, help='Duration of the class.') |
||||
|
service_id = fields.Many2one('service.type', string='Services', |
||||
|
help='Type of service.') |
||||
|
instrument_id = fields.Many2one('product.product', |
||||
|
String='Instrument', |
||||
|
domain=[('music_instrument', '=', True)], |
||||
|
help='Instrument used in the music class.') |
||||
|
teacher_id = fields.Many2one('hr.employee', string='Teacher', |
||||
|
domain=[('teacher', '=', True)], |
||||
|
help='Teacher name.') |
||||
|
location = fields.Char(string='Location', help='Location of the class.') |
||||
|
repeats = fields.Selection(selection=[('weekly', 'Weekly'), |
||||
|
('monthly', 'Monthly')], |
||||
|
string='Repeats', |
||||
|
help='Repeated days per week.') |
||||
|
state = fields.Selection( |
||||
|
selection=[('draft', 'Draft'), ('started', 'Started'), |
||||
|
('completed', 'Completed'), |
||||
|
('invoice', 'Invoiced'), ('canceled', 'Canceled')], |
||||
|
default='draft', help='State of the class.') |
||||
|
lesson_ids = fields.One2many('class.lesson', |
||||
|
'relation_id', |
||||
|
String='Class Lessons', |
||||
|
help='Daily class lessons records.') |
||||
|
student_ids = fields.Many2many('res.partner', string='Student', |
||||
|
domain=[('student', '=', True)], |
||||
|
String='Student ID', |
||||
|
help='Student who joined in the class.') |
||||
|
order_count = fields.Integer(compute='_compute_order_count', |
||||
|
String='Order Count', |
||||
|
help='Total count of the invoice.') |
||||
|
sunday = fields.Boolean(string='Sunday', help='Mark the day as a workday.') |
||||
|
monday = fields.Boolean(string='Monday', help='Mark the day as a workday.') |
||||
|
tuesday = fields.Boolean(string='Tuesday', |
||||
|
help='Mark the day as a workday.') |
||||
|
wednesday = fields.Boolean(string='Wednesday', |
||||
|
help='Mark the day as a workday.') |
||||
|
thursday = fields.Boolean(string='Thursday', |
||||
|
help='Mark the day as a workday.') |
||||
|
friday = fields.Boolean(string='Friday', help='Mark the day as a workday.') |
||||
|
saturday = fields.Boolean(string='Saturday', |
||||
|
help='Mark the day as a workday.') |
||||
|
|
||||
|
@api.depends('from_date', 'to_date') |
||||
|
def _compute_duration(self): |
||||
|
"""Function used to compute the days between the from and to date.""" |
||||
|
for records in self: |
||||
|
if records.from_date and records.to_date: |
||||
|
num_work_days = 0 |
||||
|
current_date = records.from_date |
||||
|
while current_date <= records.to_date: |
||||
|
if current_date.weekday() < 5: |
||||
|
num_work_days += 1 |
||||
|
current_date += timedelta(days=1) |
||||
|
self.duration = num_work_days |
||||
|
|
||||
|
def action_button_class_start(self): |
||||
|
"""Change the corresponding class state to start.""" |
||||
|
self.write({'state': 'started'}) |
||||
|
return self._compute_duration() |
||||
|
|
||||
|
def action_button_set_to_draft(self): |
||||
|
"""Change the corresponding class state to draft.""" |
||||
|
self.write({'state': 'draft'}) |
||||
|
|
||||
|
def action_button_class_cancel(self): |
||||
|
"""Change the corresponding class state to cancel.""" |
||||
|
self.write({'state': 'canceled'}) |
||||
|
|
||||
|
def action_button_class_completed(self): |
||||
|
"""Change the corresponding class state to complete.""" |
||||
|
self.write({'state': 'completed'}) |
||||
|
|
||||
|
def action_button_create_order(self): |
||||
|
"""Button to create the invoice.""" |
||||
|
for student in self.student_ids: |
||||
|
self.env['account.move'].create([ |
||||
|
{'move_type': 'out_invoice', |
||||
|
'partner_id': student.id, |
||||
|
'invoice_date': self.from_date, |
||||
|
'invoice_line_ids': [(0, 0, { |
||||
|
'product_id': self.instrument_id.id, |
||||
|
'price_unit': self.instrument_id.lst_price, |
||||
|
'quantity': self.duration})]}]) |
||||
|
self.write({'state': 'invoice'}) |
||||
|
|
||||
|
def related_order(self): |
||||
|
"""Related invoice in smart button.""" |
||||
|
return { |
||||
|
'type': 'ir.actions.act_window', |
||||
|
'name': 'Invoices', |
||||
|
'view_mode': 'tree', |
||||
|
'res_model': 'account.move', |
||||
|
'domain': [('partner_id', 'in', self.student_ids.ids)], |
||||
|
'context': {'create': False}} |
||||
|
|
||||
|
def _compute_order_count(self): |
||||
|
"""To compute the total count of the invoice.""" |
||||
|
for record in self: |
||||
|
record.order_count = self.env['account.move'].search_count( |
||||
|
[('partner_id', 'in', self.student_ids.ids)]) |
@ -0,0 +1,30 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
||||
|
# Author: Vishnu k P (<https://www.cybrosys.com>) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU LESSER |
||||
|
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
||||
|
# |
||||
|
# 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
||||
|
# (LGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################# |
||||
|
from odoo import fields, models |
||||
|
|
||||
|
|
||||
|
class HrEmployee(models.Model): |
||||
|
"""Model used to create the records of teacher.""" |
||||
|
_inherit = 'hr.employee' |
||||
|
|
||||
|
teacher = fields.Boolean(string='Is Teacher', help='Used to mark the ' |
||||
|
'employee as a teacher.') |
@ -0,0 +1,33 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
||||
|
# Author: Vishnu K P (<https://www.cybrosys.com>) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU LESSER |
||||
|
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
||||
|
# |
||||
|
# 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
||||
|
# (LGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################# |
||||
|
from odoo import fields, models |
||||
|
|
||||
|
|
||||
|
class ProductTemplate(models.Model): |
||||
|
"""Model used to product template as an instrument.""" |
||||
|
_inherit = "product.template" |
||||
|
|
||||
|
music_instrument = fields.Boolean(string='Music Instrument', |
||||
|
help='Enable the boolean consider' |
||||
|
' as instrument.') |
||||
|
event_ticket = fields.Boolean(string='Event Ticket', |
||||
|
help='Used to mark the contact as a student.') |
@ -0,0 +1,59 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
||||
|
# Author: Vishnu K P (<https://www.cybrosys.com>) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU LESSER |
||||
|
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
||||
|
# |
||||
|
# 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
||||
|
# (LGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################# |
||||
|
from odoo import fields, models |
||||
|
|
||||
|
|
||||
|
class ResPartner(models.Model): |
||||
|
"""Model for adding details about the students in contact module.""" |
||||
|
_inherit = 'res.partner' |
||||
|
|
||||
|
student = fields.Boolean(string='Is Student', |
||||
|
help='Used to mark the contact as a student.') |
||||
|
classes = fields.Many2one('class.type', string='Joined Class', |
||||
|
help='Relation field use to connect the class ' |
||||
|
'type to the contact.') |
||||
|
attendance_count = fields.Integer(String='Attendance Count', |
||||
|
compute='_compute_attendance_count', |
||||
|
help='Attendance count displaying field.') |
||||
|
student_type = fields.Selection( |
||||
|
[('part_time', 'Part Time'), ('full_time', 'Full Time')], |
||||
|
string='Course Mode', |
||||
|
help='Field used to define the student selected class type.') |
||||
|
|
||||
|
def class_attendance_view(self): |
||||
|
"""Function used to view the student attendance.""" |
||||
|
return { |
||||
|
'type': 'ir.actions.act_window', |
||||
|
'name': 'class', |
||||
|
'view_mode': 'tree', |
||||
|
'res_model': 'students.attendance', |
||||
|
'domain': [ |
||||
|
('student_id', '=', self.id)], |
||||
|
'context': "{'create': False}"} |
||||
|
|
||||
|
def _compute_attendance_count(self): |
||||
|
"""Function used to count the attendance.""" |
||||
|
for record in self: |
||||
|
record.attendance_count = self.env[ |
||||
|
'students.attendance'].search_count( |
||||
|
[('student_id', '=', record.id), |
||||
|
('attendance', '=', 'present')]) |
@ -0,0 +1,35 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
||||
|
# Author: Vishnu K P (<https://www.cybrosys.com>) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU LESSER |
||||
|
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
||||
|
# |
||||
|
# 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
||||
|
# (LGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################# |
||||
|
from odoo import fields, models |
||||
|
|
||||
|
|
||||
|
class ServiceType(models.Model): |
||||
|
"""Service type model and the fields are used to create the service.""" |
||||
|
_name = 'service.type' |
||||
|
_description = 'Service Type' |
||||
|
|
||||
|
name = fields.Char(string='Name', help='Name of the service.') |
||||
|
instrument = fields.Char(string='Instrument', help='Instrument used in the ' |
||||
|
'service.') |
||||
|
teacher_id = fields.Many2one('hr.employee', string='Teacher', |
||||
|
domain=[('teacher', '=', True)], |
||||
|
help='Teacher assigned to the lesson.') |
@ -0,0 +1,37 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
||||
|
# Author: Vishnu K P (<https://www.cybrosys.com>) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU LESSER |
||||
|
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
||||
|
# |
||||
|
# 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
||||
|
# (LGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################# |
||||
|
from odoo import fields, models |
||||
|
|
||||
|
|
||||
|
class StudentsAttendance(models.Model): |
||||
|
"""Model used to create the records of attendance.""" |
||||
|
_name = "students.attendance" |
||||
|
_description = 'Students Attendance' |
||||
|
_rec_name = 'student_id' |
||||
|
|
||||
|
student_id = fields.Many2one('res.partner', string='Students', |
||||
|
domain=[('student', '=', True)], |
||||
|
help="Name of the student.") |
||||
|
attendance = fields.Selection([('present', 'Present'), |
||||
|
('absent', 'Absent')], string='Attendance', |
||||
|
help="Attendance selection field.") |
||||
|
date = fields.Date(string='Date', help='Date of the student attendance.') |
|
After Width: | Height: | Size: 3.6 KiB |
After Width: | Height: | Size: 310 B |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 576 B |
After Width: | Height: | Size: 733 B |
After Width: | Height: | Size: 911 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 673 B |
After Width: | Height: | Size: 878 B |
After Width: | Height: | Size: 653 B |
After Width: | Height: | Size: 905 B |
After Width: | Height: | Size: 839 B |
After Width: | Height: | Size: 427 B |
After Width: | Height: | Size: 627 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 988 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 4.4 KiB |
After Width: | Height: | Size: 589 B |
After Width: | Height: | Size: 3.4 KiB |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 967 B |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 3.8 KiB |
After Width: | Height: | Size: 5.0 KiB |
After Width: | Height: | Size: 131 KiB |
After Width: | Height: | Size: 80 KiB |
After Width: | Height: | Size: 81 KiB |
After Width: | Height: | Size: 81 KiB |
After Width: | Height: | Size: 74 KiB |
After Width: | Height: | Size: 79 KiB |
After Width: | Height: | Size: 64 KiB |
After Width: | Height: | Size: 76 KiB |
After Width: | Height: | Size: 81 KiB |
After Width: | Height: | Size: 163 KiB |
After Width: | Height: | Size: 92 KiB |
After Width: | Height: | Size: 69 KiB |
After Width: | Height: | Size: 95 KiB |
After Width: | Height: | Size: 50 KiB |
After Width: | Height: | Size: 14 KiB |
@ -0,0 +1,618 @@ |
|||||
|
<div style="background-color: #714B67; height: 810px; width: 100%; padding: 15px; position: relative;"> |
||||
|
<!-- TITLE BAR --> |
||||
|
<div class="d-flex align-items-center justify-content-between" |
||||
|
style="border-bottom: 1px solid #875A7B; padding: 15px; display: flex; justify-content: space-between; align-items: center;"> |
||||
|
<img src="assets/misc/cybrosys-logo.png" width="42" height="42" style="width: 42px; height: 42px;" /> |
||||
|
<div> |
||||
|
<div style="color: #7C7BAD; font-size: 14px; font-family: 'Montserrat', sans-serif; font-weight: bold; background-color: white; display: inline-block; padding: 3px 10px; border-radius: 50px;" |
||||
|
class="mr-2"> |
||||
|
<i class="fa fa-check mr-1"></i>Community |
||||
|
</div> |
||||
|
<div style="color: #875A7B; font-size: 14px; font-family: 'Montserrat', sans-serif; font-weight: bold; background-color: white; display: inline-block; padding: 3px 10px; border-radius: 50px;" |
||||
|
class="mr-2"> |
||||
|
<i class="fa fa-check mr-1"></i>Enterprise |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<!-- END OF TITLE BAR --> |
||||
|
<div class="container"> |
||||
|
<div class="row"> |
||||
|
<div class="col-sm-12 col-md-12 col-lg-12"> |
||||
|
<!-- APP HERO --> |
||||
|
<h1 style="color: #FFFFFF; font-weight: bolder; font-size: 50px; text-align: center; margin-top: 50px;"> |
||||
|
Music School Institute |
||||
|
</h1> |
||||
|
<p style="color:#FFFFFF; padding: 8px 15px; text-align: center; font-size: 24px;"> |
||||
|
A Module For Managing Music School |
||||
|
</p> |
||||
|
<!-- END OF APP HERO --> |
||||
|
<img src="assets/screenshots/hero.gif" |
||||
|
style="width: 75%; height: auto; position: absolute; margin-left: auto; margin-right: auto; top: 45%; left: 12%; right: auto;"/> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<!-- NAVIGATION SECTION --> |
||||
|
<div class="d-flex align-items-center" style="border-bottom: 2px solid #714B67; padding: 15px 0px; margin-top: 300px;"> |
||||
|
<div class="d-flex justify-content-center align-items-center mr-2" |
||||
|
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;"> |
||||
|
<img src="assets/misc/compass.png" /> |
||||
|
</div> |
||||
|
<h2 class="mt-2" style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">Explore This |
||||
|
Module</h2> |
||||
|
</div> |
||||
|
<div class="row my-4" style="font-family: 'Montserrat', sans-serif;"> |
||||
|
<div class="col-sm-12 col-md-6 my-3"> |
||||
|
<a href="#overview"> |
||||
|
<div class="d-flex justify-content-between align-items-center" |
||||
|
style="background-color: #f5f5f5; padding: 30px; width: 100%;"> |
||||
|
<div> |
||||
|
<span style="color: #714B67; font-size: 24px; font-weight: 500; display: block;">Overview</span> |
||||
|
<span style="color: #714B67; font-size: 16px; font-weight: 400; color:#282F33; display: block;">Learn |
||||
|
more about this |
||||
|
module</span> |
||||
|
</div> |
||||
|
<img src="assets/misc/right-arrow.png" width="36" height="36" /> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
<div class="col-sm-12 col-md-6 my-3"> |
||||
|
<a href="#features"> |
||||
|
<div class="d-flex justify-content-between align-items-center" |
||||
|
style="background-color: #f5f5f5; padding: 30px; width: 100%;"> |
||||
|
<div> |
||||
|
<span style="color: #714B67; font-size: 24px; font-weight: 500; display: block;">Features</span> |
||||
|
<span style="color: #714B67; font-size: 16px; font-weight: 400; color:#282F33; display: block;">View |
||||
|
features of this |
||||
|
module</span> |
||||
|
</div> |
||||
|
<img src="assets/misc/right-arrow.png" width="36" height="36" /> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
<div class="col-sm-12 col-md-6 my-3"> |
||||
|
<a href="#screenshots"> |
||||
|
<div class="d-flex justify-content-between align-items-center" |
||||
|
style="background-color: #f5f5f5; padding: 30px; width: 100%;"> |
||||
|
<div> |
||||
|
<span style="color: #714B67; font-size: 24px; font-weight: 500; display: block;">Screenshots</span> |
||||
|
<span style="color: #714B67; font-size: 16px; font-weight: 400; color:#282F33; display: block;">View |
||||
|
screenshots for this |
||||
|
module</span> |
||||
|
</div> |
||||
|
<img src="assets/misc/right-arrow.png" width="36" height="36" /> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
<!-- END OF NAVIGATION SECTION --> |
||||
|
<!-- OVERVIEW SECTION --> |
||||
|
<div class="d-flex align-items-center" style="border-bottom: 2px solid #714B67; padding: 15px 0px;" id="overview"> |
||||
|
<div class="d-flex justify-content-center align-items-center mr-2" |
||||
|
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;"> |
||||
|
<img src="assets/misc/pie-chart.png" /> |
||||
|
</div> |
||||
|
<h2 class="mt-2" style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">Overview |
||||
|
</h2> |
||||
|
</div> |
||||
|
<div class="row" style="font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: 14px; line-height: 200%;"> |
||||
|
<div class="col-sm-12 py-4"> |
||||
|
Music School institute is a core module which can manage any type of music school. |
||||
|
The user can download the module and manage the music school with lots of different class. |
||||
|
It can be used to manage music school event, product, students, and teacher. |
||||
|
</div> |
||||
|
</div> |
||||
|
<!-- END OF OVERVIEW SECTION --> |
||||
|
<!-- FEATURES SECTION --> |
||||
|
<div class="d-flex align-items-center" style="border-bottom: 2px solid #714B67; padding: 15px 0px;" id="features"> |
||||
|
<div class="d-flex justify-content-center align-items-center mr-2" |
||||
|
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;"> |
||||
|
<img src="assets/misc/features.png" /> |
||||
|
</div> |
||||
|
<h2 class="mt-2" style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">Features |
||||
|
</h2> |
||||
|
</div> |
||||
|
<div class="row" |
||||
|
style="font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: 14px; line-height: 200%;"> |
||||
|
<div class="col-sm-12 col-md-6"> |
||||
|
<div class="d-flex align-items-start" |
||||
|
style="margin-top: 40px; margin-bottom: 40px"> |
||||
|
<img src="./assets/misc/check-box.png" class="mr-2"/> |
||||
|
<div> |
||||
|
<span style="display: block; font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;"> |
||||
|
Class Management |
||||
|
</span> |
||||
|
<span style="display: block; font-family: 'Montserrat', sans-serif; font-size: 12px;"> |
||||
|
Can Manage Different Class. |
||||
|
</span> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="d-flex align-items-start" |
||||
|
style="margin-top: 40px; margin-bottom: 40px"> |
||||
|
<img src="./assets/misc/check-box.png" class="mr-2"/> |
||||
|
<div> |
||||
|
<span style="display: block; font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;"> |
||||
|
Students Management |
||||
|
</span> |
||||
|
<span style="display: block; font-family: 'Montserrat', sans-serif; font-size: 12px;"> |
||||
|
Easily add Student to the class and can view part-time and full time students. |
||||
|
</span> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="d-flex align-items-start" |
||||
|
style="margin-top: 40px; margin-bottom: 40px"> |
||||
|
<img src="./assets/misc/check-box.png" class="mr-2"/> |
||||
|
<div> |
||||
|
<span style="display: block; font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;"> |
||||
|
Events Management |
||||
|
</span> |
||||
|
<span style="display: block; font-family: 'Montserrat', sans-serif; font-size: 12px;"> |
||||
|
Easily create events for music class and can sell the seat. |
||||
|
</span> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="d-flex align-items-start" |
||||
|
style="margin-top: 40px; margin-bottom: 40px"> |
||||
|
<img src="./assets/misc/check-box.png" class="mr-2"/> |
||||
|
<div> |
||||
|
<span style="display: block; font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;"> |
||||
|
Teachers Management |
||||
|
</span> |
||||
|
<span style="display: block; font-family: 'Montserrat', sans-serif; font-size: 12px;"> |
||||
|
Easily manage your Teachers records. |
||||
|
</span> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="d-flex align-items-start" |
||||
|
style="margin-top: 40px; margin-bottom: 40px"> |
||||
|
<img src="./assets/misc/check-box.png" class="mr-2"/> |
||||
|
<div> |
||||
|
<span style="display: block; font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;"> |
||||
|
Informative Form Page |
||||
|
</span> |
||||
|
<span style="display: block; font-family: 'Montserrat', sans-serif; font-size: 12px;"> |
||||
|
Class related order count is visible and can see the invoice. |
||||
|
</span> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="d-flex align-items-start" |
||||
|
style="margin-top: 40px; margin-bottom: 40px"> |
||||
|
<img src="./assets/misc/check-box.png" class="mr-2"/> |
||||
|
<div> |
||||
|
<span style="display: block; font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;"> |
||||
|
Attendance |
||||
|
</span> |
||||
|
<span style="display: block; font-family: 'Montserrat', sans-serif; font-size: 12px;"> |
||||
|
Easy way to add attendance of the students and can issue invoice based on the attendance. |
||||
|
</span> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<!-- END OF FEATURES SECTION --> |
||||
|
<!-- SCREENSHOTS SECTION --> |
||||
|
<div class="d-flex align-items-center" |
||||
|
style="border-bottom: 2px solid #714B67; padding: 15px 0px;" |
||||
|
id="screenshots"> |
||||
|
<div class="d-flex justify-content-center align-items-center mr-2" |
||||
|
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;"> |
||||
|
<img src="./assets/misc/pictures.png"/> |
||||
|
</div> |
||||
|
<h2 class="mt-2" |
||||
|
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;"> |
||||
|
Screenshots |
||||
|
</h2> |
||||
|
</div> |
||||
|
<div class="row"> |
||||
|
<div class="col-sm-12"> |
||||
|
|
||||
|
<div style="display: block; margin: 30px auto;"> |
||||
|
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;"> |
||||
|
Events Management |
||||
|
</h3> |
||||
|
|
||||
|
<img src="./assets/screenshots/events.png" |
||||
|
class="img-thumbnail"> |
||||
|
</div> |
||||
|
<div style="display: block; margin: 30px auto;"> |
||||
|
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;"> |
||||
|
Attendance |
||||
|
</h3> |
||||
|
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;"> |
||||
|
Can add students attendance to the program. |
||||
|
</p> |
||||
|
<img src="./assets/screenshots/attendance.png" |
||||
|
class="img-thumbnail"> |
||||
|
</div> |
||||
|
<div style="display: block; margin: 30px auto;"> |
||||
|
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;"> |
||||
|
Class |
||||
|
</h3> |
||||
|
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;"> |
||||
|
We can add the details including Students, start and end date, state etc. |
||||
|
</p> |
||||
|
<img src="./assets/screenshots/class.png" |
||||
|
class="img-thumbnail"> |
||||
|
</div> |
||||
|
<div style="display: block; margin: 30px auto;"> |
||||
|
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;"> |
||||
|
Class Dashboard View |
||||
|
</h3> |
||||
|
<img src="./assets/screenshots/class_dash.png" |
||||
|
class="img-thumbnail"> |
||||
|
</div> |
||||
|
<div style="display: block; margin: 30px auto;"> |
||||
|
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;"> |
||||
|
Instruments Management |
||||
|
</h3> |
||||
|
<img src="./assets/screenshots/instruments.png" |
||||
|
class="img-thumbnail"> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<!-- END OF SCREENSHOTS SECTION --> |
||||
|
<!-- RELATED PRODUCTS --> |
||||
|
<div class="d-flex align-items-center" style="border-bottom: 2px solid #714B67; padding: 15px 0px;"> |
||||
|
<div class="d-flex justify-content-center align-items-center mr-2" |
||||
|
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;"> |
||||
|
<img src="assets/misc/categories.png" /> |
||||
|
</div> |
||||
|
<h2 class="mt-2" style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">Related |
||||
|
Products |
||||
|
</h2> |
||||
|
</div> |
||||
|
<div class="row"> |
||||
|
<div class="col-sm-12"> |
||||
|
<div id="demo1" class="row carousel slide" data-ride="carousel"> |
||||
|
<!-- The slideshow --> |
||||
|
<div class="carousel-inner" style="padding: 30px;"> |
||||
|
<div class="carousel-item" style="min-height: 198.656px;"> |
||||
|
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" |
||||
|
style="float:left"> |
||||
|
<a href="https://apps.odoo.com/apps/modules/16.0/insurance_management_cybro/" |
||||
|
target="_blank"> |
||||
|
<div style="border-radius:10px"> |
||||
|
<img class="img img-responsive center-block" |
||||
|
style="border-radius: 0px;" |
||||
|
src="assets/modules/insurance.png"> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" |
||||
|
style="float:left"> |
||||
|
<a href="https://apps.odoo.com/apps/modules/16.0/front_office_management/" |
||||
|
target="_blank"> |
||||
|
<div style="border-radius:10px"> |
||||
|
<img class="img img-responsive center-block" |
||||
|
style="border-radius: 0px;" |
||||
|
src="assets/modules/frond.png"> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" |
||||
|
style="float:left"> |
||||
|
<a href="https://apps.odoo.com/apps/modules/16.0/salon_management/" |
||||
|
target="_blank"> |
||||
|
<div style="border-radius:10px"> |
||||
|
<img class="img img-responsive center-block" |
||||
|
style="border-radius: 0px;" |
||||
|
src="assets/modules/spa.png"> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="carousel-item active" |
||||
|
style="min-height: 198.656px;"> |
||||
|
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" |
||||
|
style="float:left"> |
||||
|
<a href="https://apps.odoo.com/apps/modules/16.0/laundry_management/" |
||||
|
target="_blank"> |
||||
|
<div style="border-radius:10px"> |
||||
|
<img class="img img-responsive center-block" |
||||
|
style="border-radius: 0px;" |
||||
|
src="assets/modules/laundry.png"> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" |
||||
|
style="float:left"> |
||||
|
<a href="https://apps.odoo.com/apps/modules/16.0/legal_case_management/" |
||||
|
target="_blank"> |
||||
|
<div style="border-radius:10px"> |
||||
|
<img class="img img-responsive center-block" |
||||
|
style="border-radius: 0px;" |
||||
|
src="assets/modules/legal.png"> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" |
||||
|
style="float:left"> |
||||
|
<a href="https://apps.odoo.com/apps/modules/16.0/education_attendances/" |
||||
|
target="_blank"> |
||||
|
<div style="border-radius:10px"> |
||||
|
<img class="img img-responsive center-block" |
||||
|
style="border-radius: 0px;" |
||||
|
src="assets/modules/educational.png"> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<!-- Left and right controls --> |
||||
|
<a class="carousel-control-prev" href="#demo1" data-slide="prev" |
||||
|
style="width:35px; color:#000"> <span |
||||
|
class="carousel-control-prev-icon"><i |
||||
|
class="fa fa-chevron-left" |
||||
|
style="font-size:24px"></i></span> |
||||
|
</a> <a class="carousel-control-next" href="#demo1" |
||||
|
data-slide="next" style="width:35px; color:#000"> |
||||
|
<span class="carousel-control-next-icon"><i |
||||
|
class="fa fa-chevron-right" |
||||
|
style="font-size:24px"></i></span> |
||||
|
</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<!-- END OF RELATED PRODUCTS --> |
||||
|
<!-- OUR SERVICES --> |
||||
|
<div class="d-flex align-items-center" style="border-bottom: 2px solid #714B67; padding: 15px 0px;"> |
||||
|
<div class="d-flex justify-content-center align-items-center mr-2" |
||||
|
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;"> |
||||
|
<img src="assets/misc/star.png" /> |
||||
|
</div> |
||||
|
<h2 class="mt-2" style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">Our Services |
||||
|
</h2> |
||||
|
</div> |
||||
|
<div class="container my-5"> |
||||
|
<div class="row"> |
||||
|
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> |
||||
|
<div class="d-flex justify-content-center align-items-center mx-3 my-3" |
||||
|
style="background-color: #1dd1a1 !important; border-radius: 15px !important; height: 80px; width: 80px;"> |
||||
|
<img src="assets/icons/cogs.png" class="img-responsive" height="48px" width="48px"> |
||||
|
</div> |
||||
|
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> |
||||
|
Odoo |
||||
|
Customization</h6> |
||||
|
</div> |
||||
|
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> |
||||
|
<div class="d-flex justify-content-center align-items-center mx-3 my-3" |
||||
|
style="background-color: #ff6b6b !important; border-radius: 15px !important; height: 80px; width: 80px;"> |
||||
|
<img src="assets/icons/wrench.png" class="img-responsive" height="48px" width="48px"> |
||||
|
</div> |
||||
|
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> |
||||
|
Odoo |
||||
|
Implementation</h6> |
||||
|
</div> |
||||
|
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> |
||||
|
<div class="d-flex justify-content-center align-items-center mx-3 my-3" |
||||
|
style="background-color: #6462CD !important; border-radius: 15px !important; height: 80px; width: 80px;"> |
||||
|
<img src="assets/icons/lifebuoy.png" class="img-responsive" height="48px" width="48px"> |
||||
|
</div> |
||||
|
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> |
||||
|
Odoo |
||||
|
Support</h6> |
||||
|
</div> |
||||
|
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> |
||||
|
<div class="d-flex justify-content-center align-items-center mx-3 my-3" |
||||
|
style="background-color: #ffa801 !important; border-radius: 15px !important; height: 80px; width: 80px;"> |
||||
|
<img src="assets/icons/user.png" class="img-responsive" height="48px" width="48px"> |
||||
|
</div> |
||||
|
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> |
||||
|
Hire |
||||
|
Odoo |
||||
|
Developer</h6> |
||||
|
</div> |
||||
|
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> |
||||
|
<div class="d-flex justify-content-center align-items-center mx-3 my-3" |
||||
|
style="background-color: #54a0ff !important; border-radius: 15px !important; height: 80px; width: 80px;"> |
||||
|
<img src="assets/icons/puzzle.png" class="img-responsive" height="48px" width="48px"> |
||||
|
</div> |
||||
|
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> |
||||
|
Odoo |
||||
|
Integration</h6> |
||||
|
</div> |
||||
|
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> |
||||
|
<div class="d-flex justify-content-center align-items-center mx-3 my-3" |
||||
|
style="background-color: #6d7680 !important; border-radius: 15px !important; height: 80px; width: 80px;"> |
||||
|
<img src="assets/icons/update.png" class="img-responsive" height="48px" width="48px"> |
||||
|
</div> |
||||
|
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> |
||||
|
Odoo |
||||
|
Migration</h6> |
||||
|
</div> |
||||
|
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> |
||||
|
<div class="d-flex justify-content-center align-items-center mx-3 my-3" |
||||
|
style="background-color: #786fa6 !important; border-radius: 15px !important; height: 80px; width: 80px;"> |
||||
|
<img src="assets/icons/consultation.png" class="img-responsive" height="48px" width="48px"> |
||||
|
</div> |
||||
|
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> |
||||
|
Odoo |
||||
|
Consultancy</h6> |
||||
|
</div> |
||||
|
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> |
||||
|
<div class="d-flex justify-content-center align-items-center mx-3 my-3" |
||||
|
style="background-color: #f8a5c2 !important; border-radius: 15px !important; height: 80px; width: 80px;"> |
||||
|
<img src="assets/icons/training.png" class="img-responsive" height="48px" width="48px"> |
||||
|
</div> |
||||
|
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> |
||||
|
Odoo |
||||
|
Implementation</h6> |
||||
|
</div> |
||||
|
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> |
||||
|
<div class="d-flex justify-content-center align-items-center mx-3 my-3" |
||||
|
style="background-color: #e6be26 !important; border-radius: 15px !important; height: 80px; width: 80px;"> |
||||
|
<img src="assets/icons/license.png" class="img-responsive" height="48px" width="48px"> |
||||
|
</div> |
||||
|
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> |
||||
|
Odoo |
||||
|
Licensing Consultancy</h6> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<!-- END OF OUR SERVICES --> |
||||
|
<!-- OUR INDUSTRIES --> |
||||
|
<div class="d-flex align-items-center" style="border-bottom: 2px solid #714B67; padding: 15px 0px;"> |
||||
|
<div class="d-flex justify-content-center align-items-center mr-2" |
||||
|
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;"> |
||||
|
<img src="assets/misc/corporate.png" /> |
||||
|
</div> |
||||
|
<h2 class="mt-2" style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">Our |
||||
|
Industries |
||||
|
</h2> |
||||
|
</div> |
||||
|
<div class="container my-5"> |
||||
|
<div class="row"> |
||||
|
<div class="col-lg-3"> |
||||
|
<div class="my-4 d-flex flex-column justify-content-center" |
||||
|
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;"> |
||||
|
<img src="assets/icons/trading-black.png" class="img-responsive mb-3" height="48px" width="48px"> |
||||
|
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> |
||||
|
Trading |
||||
|
</h5> |
||||
|
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> |
||||
|
Easily procure |
||||
|
and |
||||
|
sell your products</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-lg-3"> |
||||
|
<div class="my-4 d-flex flex-column justify-content-center" |
||||
|
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;"> |
||||
|
<img src="assets/icons/pos-black.png" class="img-responsive mb-3" height="48px" width="48px"> |
||||
|
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> |
||||
|
POS |
||||
|
</h5> |
||||
|
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> |
||||
|
Easy |
||||
|
configuration |
||||
|
and convivial experience</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-lg-3"> |
||||
|
<div class="my-4 d-flex flex-column justify-content-center" |
||||
|
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;"> |
||||
|
<img src="assets/icons/education-black.png" class="img-responsive mb-3" height="48px" width="48px"> |
||||
|
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> |
||||
|
Education |
||||
|
</h5> |
||||
|
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> |
||||
|
A platform for |
||||
|
educational management</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-lg-3"> |
||||
|
<div class="my-4 d-flex flex-column justify-content-center" |
||||
|
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;"> |
||||
|
<img src="assets/icons/manufacturing-black.png" class="img-responsive mb-3" height="48px" width="48px"> |
||||
|
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> |
||||
|
Manufacturing |
||||
|
</h5> |
||||
|
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> |
||||
|
Plan, track and |
||||
|
schedule your operations</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-lg-3"> |
||||
|
<div class="my-4 d-flex flex-column justify-content-center" |
||||
|
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;"> |
||||
|
<img src="assets/icons/ecom-black.png" class="img-responsive mb-3" height="48px" width="48px"> |
||||
|
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> |
||||
|
E-commerce & Website |
||||
|
</h5> |
||||
|
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> |
||||
|
Mobile |
||||
|
friendly, |
||||
|
awe-inspiring product pages</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-lg-3"> |
||||
|
<div class="my-4 d-flex flex-column justify-content-center" |
||||
|
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;"> |
||||
|
<img src="assets/icons/service-black.png" class="img-responsive mb-3" height="48px" width="48px"> |
||||
|
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> |
||||
|
Service Management |
||||
|
</h5> |
||||
|
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> |
||||
|
Keep track of |
||||
|
services and invoice</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-lg-3"> |
||||
|
<div class="my-4 d-flex flex-column justify-content-center" |
||||
|
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;"> |
||||
|
<img src="assets/icons/restaurant-black.png" class="img-responsive mb-3" height="48px" width="48px"> |
||||
|
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> |
||||
|
Restaurant |
||||
|
</h5> |
||||
|
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> |
||||
|
Run your bar or |
||||
|
restaurant methodically</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-lg-3"> |
||||
|
<div class="my-4 d-flex flex-column justify-content-center" |
||||
|
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;"> |
||||
|
<img src="assets/icons/hotel-black.png" class="img-responsive mb-3" height="48px" width="48px"> |
||||
|
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> |
||||
|
Hotel Management |
||||
|
</h5> |
||||
|
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> |
||||
|
An |
||||
|
all-inclusive |
||||
|
hotel management application</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<!--END OF OUR INDUSTRIES --> |
||||
|
<!-- SUPPORT --> |
||||
|
<div class="d-flex align-items-center" style="border-bottom: 2px solid #714B67; padding: 15px 0px;"> |
||||
|
<div class="d-flex justify-content-center align-items-center mr-2" |
||||
|
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;"> |
||||
|
<img src="assets/misc/customer-support.png" /> |
||||
|
</div> |
||||
|
<h2 class="mt-2" style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">Support |
||||
|
</h2> |
||||
|
</div> |
||||
|
<div class="container mt-5"> |
||||
|
<div class="row"> |
||||
|
<div class="col-sm-12 col-md-6"> |
||||
|
<div style="background-color: #F6F8F9; padding: 30px; display: flex; align-items: center;"> |
||||
|
<div class="mr-4 d-flex justify-content-center align-items-center" |
||||
|
style="background-color: #714B67; display: inline-block; height: 70px; width: 70px; display: flex; align-items: center; justify-content: center;"> |
||||
|
<img src="assets/misc/support.png" height="48" width="48" style="width: 42px; height: 42px;" /> |
||||
|
</div> |
||||
|
<div> |
||||
|
<h4>Need Help?</h4> |
||||
|
<p style="line-height: 100%;">Got questions or need help? Get in touch.</p> |
||||
|
<a href="mailto:odoo@cybrosys.com"> |
||||
|
<p style="font-weight: 400; font-size: 28px; line-height: 80%; color: #714B67;"> |
||||
|
odoo@cybrosys.com</p> |
||||
|
</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-sm-12 col-md-6"> |
||||
|
<div style="background-color: #F6F8F9; padding: 30px; display: flex; align-items: center;"> |
||||
|
<div class="mr-4 d-flex justify-content-center align-items-center" |
||||
|
style="background-color: #2AC44D; display: inline-block; height: 70px; width: 70px; display: flex; align-items: center; justify-content: center;"> |
||||
|
<img src="assets/misc/whatsapp.png" height="52" width="52" style="width: 52px; height: 52px;" /> |
||||
|
</div> |
||||
|
<div> |
||||
|
<h4>WhatsApp</h4> |
||||
|
<p style="line-height: 100%;">Say hi to us on WhatsApp!</p> |
||||
|
<a href="https://api.whatsapp.com/send?phone=918606827707"> |
||||
|
<p style="font-weight: 400; font-size: 28px; line-height: 80%; color: #714B67;">+91 86068 |
||||
|
27707</p> |
||||
|
</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="row"> |
||||
|
<div class="col-sm-12 my-5 d-flex justify-content-center align-items-center"> |
||||
|
<img src="assets/misc/logo.png" width="144" height="31" style="width:144px; height: 31px; margin-top: 40px;" /> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<!-- END OF SUPPORT --> |
@ -0,0 +1,81 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8" ?> |
||||
|
<!--Action for menu lesson--> |
||||
|
<odoo> |
||||
|
<record model="ir.actions.act_window" id="class_lesson_action"> |
||||
|
<field name="name">Lessons</field> |
||||
|
<field name="res_model">class.lesson</field> |
||||
|
<field name="view_mode">tree,form,kanban</field> |
||||
|
</record> |
||||
|
<!--Menu lesson record--> |
||||
|
<menuitem |
||||
|
id="class_lesson_menu" |
||||
|
name="Lessons" |
||||
|
action="class_lesson_action" |
||||
|
parent="music_school_institute_menu_root"/> |
||||
|
<!--Form view defined for the model class lesson--> |
||||
|
<record id="class_lesson_view_form" model="ir.ui.view"> |
||||
|
<field name="name">class.lesson.view.form</field> |
||||
|
<field name="model">class.lesson</field> |
||||
|
<field name="arch" type="xml"> |
||||
|
<form> |
||||
|
<sheet> |
||||
|
<group> |
||||
|
<div class="oe_title"> |
||||
|
<label for="name"/> |
||||
|
<h1> |
||||
|
<field name="name" class="oe_inline"/> |
||||
|
</h1> |
||||
|
</div> |
||||
|
</group> |
||||
|
<group> |
||||
|
<field name="hours"/> |
||||
|
<field name="teacher_id"/> |
||||
|
</group> |
||||
|
</sheet> |
||||
|
</form> |
||||
|
</field> |
||||
|
</record> |
||||
|
<!--Tree view defined for the model class lesson--> |
||||
|
<record id="class_lesson_view_tree" model="ir.ui.view"> |
||||
|
<field name="name">class.lesson.view.tree</field> |
||||
|
<field name="model">class.lesson</field> |
||||
|
<field name="arch" type="xml"> |
||||
|
<tree> |
||||
|
<field name="name"/> |
||||
|
<field name="hours"/> |
||||
|
<field name="teacher_id"/> |
||||
|
</tree> |
||||
|
</field> |
||||
|
</record> |
||||
|
<!--Kanban view defined for the model class lesson--> |
||||
|
<record id="class_lesson_view_kanban" model="ir.ui.view"> |
||||
|
<field name="name">class.lesson.view.kanban</field> |
||||
|
<field name="model">class.lesson</field> |
||||
|
<field name="arch" type="xml"> |
||||
|
<kanban class="o_res_partner_kanban"> |
||||
|
<templates> |
||||
|
<t t-name="kanban-box"> |
||||
|
<div t-attf-class="oe_kanban_global_click"> |
||||
|
<div class="oe_kanban_details"> |
||||
|
<strong class="o_kanban_record_title"> |
||||
|
<span>Lesson:</span> |
||||
|
<field name="name"/> |
||||
|
</strong> |
||||
|
<div> |
||||
|
<div> |
||||
|
<span>Hours:</span> |
||||
|
<field name="hours"/> |
||||
|
</div> |
||||
|
<div> |
||||
|
<span>Teacher:</span> |
||||
|
<field name="teacher_id"/> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</t> |
||||
|
</templates> |
||||
|
</kanban> |
||||
|
</field> |
||||
|
</record> |
||||
|
</odoo> |
@ -0,0 +1,167 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8" ?> |
||||
|
<odoo> |
||||
|
<!-- Tree,form,kanban,calendar view action for the model class type--> |
||||
|
<record id="class_type_action" model="ir.actions.act_window"> |
||||
|
<field name="name">Class</field> |
||||
|
<field name="res_model">class.type</field> |
||||
|
<field name="view_mode">tree,form,kanban,calendar</field> |
||||
|
</record> |
||||
|
<!-- Music school menu creation for the model class type--> |
||||
|
<menuitem id="music_school_institute_menu_root" name="Music School" |
||||
|
web_icon="music_school_institute,static/description/icon.png" |
||||
|
action="class_type_action"/> |
||||
|
<!-- Class menu creation for the model class type--> |
||||
|
<menuitem |
||||
|
id="class_type_menu_class_creation" |
||||
|
name="Class" |
||||
|
action="class_type_action" |
||||
|
parent="music_school_institute_menu_root"/> |
||||
|
<!--Form view defined for the model class type--> |
||||
|
<record id="class_type_view_form" model="ir.ui.view"> |
||||
|
<field name="name">class.type.view.form</field> |
||||
|
<field name="model">class.type</field> |
||||
|
<field name="arch" type="xml"> |
||||
|
<form> |
||||
|
<header> |
||||
|
<button name="action_button_class_start" string="Start" |
||||
|
type="object" states="draft" |
||||
|
class="btn btn-primary" groups="base.group_user"/> |
||||
|
<button name="action_button_class_cancel" string="Cancel" |
||||
|
type="object" states="draft,started,ongoing" |
||||
|
class="btn btn-primary" groups="base.group_user"/> |
||||
|
<button name="action_button_set_to_draft" string="Set to Draft" |
||||
|
type="object" states="canceled" |
||||
|
class="btn btn-primary" groups="base.group_user"/> |
||||
|
<button name="action_button_class_completed" string="Mark As Done" |
||||
|
type="object" states="started" |
||||
|
class="btn btn-primary" groups="base.group_user"/> |
||||
|
<button name="action_button_create_order" string="Invoice" type="object" |
||||
|
states="completed" class="btn btn-primary" |
||||
|
groups="base.group_user"/> |
||||
|
<field name="state" widget="statusbar"/> |
||||
|
</header> |
||||
|
<sheet> |
||||
|
<div name="button_box" position="inside"> |
||||
|
<button class="oe_stat_button" type="object" |
||||
|
name="related_order" icon="fa-list-alt"> |
||||
|
<field string="Invoice" name="order_count" |
||||
|
widget="statinfo"/> |
||||
|
</button> |
||||
|
</div> |
||||
|
<group> |
||||
|
<div class="oe_title"> |
||||
|
<label for="name"/> |
||||
|
<h1> |
||||
|
<field name="name" class="oe_inline"/> |
||||
|
</h1> |
||||
|
</div> |
||||
|
</group> |
||||
|
<group col="4"> |
||||
|
<group> |
||||
|
<field name="from_date"/> |
||||
|
<field name="to_date"/> |
||||
|
<field name="duration"/> |
||||
|
<field name="service_id"/> |
||||
|
<field name="instrument_id"/> |
||||
|
<field name="teacher_id"/> |
||||
|
<field name="location"/> |
||||
|
<field name="student_ids" widget="many2many_tags"/> |
||||
|
<field name="repeats"/> |
||||
|
</group> |
||||
|
<group attrs="{'invisible': [('repeats', '!=', 'weekly')]}"> |
||||
|
<field name="sunday"/> |
||||
|
<field name="monday"/> |
||||
|
<field name="tuesday"/> |
||||
|
<field name="wednesday"/> |
||||
|
<field name="thursday"/> |
||||
|
<field name="friday"/> |
||||
|
<field name="saturday"/> |
||||
|
</group> |
||||
|
</group> |
||||
|
<notebook> |
||||
|
<page string="Lessons" name="Lessons"> |
||||
|
<field name="lesson_ids" widget="one2many"> |
||||
|
<tree editable="bottom"> |
||||
|
<field name="name"/> |
||||
|
<field name="hours"/> |
||||
|
<field name="teacher_id"/> |
||||
|
</tree> |
||||
|
</field> |
||||
|
</page> |
||||
|
</notebook> |
||||
|
</sheet> |
||||
|
</form> |
||||
|
</field> |
||||
|
</record> |
||||
|
<!--Tree view defined for the model class type--> |
||||
|
<record id="class_type_view_tree" model="ir.ui.view"> |
||||
|
<field name="name">class.type.view.tree</field> |
||||
|
<field name="model">class.type</field> |
||||
|
<field name="arch" type="xml"> |
||||
|
<tree> |
||||
|
<field name="from_date"/> |
||||
|
<field name="to_date"/> |
||||
|
<field name="service_id"/> |
||||
|
<field name="instrument_id"/> |
||||
|
</tree> |
||||
|
</field> |
||||
|
</record> |
||||
|
<!--Calendar view defined for the model class type--> |
||||
|
<record id="class_type_view_calender" model="ir.ui.view"> |
||||
|
<field name="name">class.type.view.calendar</field> |
||||
|
<field name="model">class.type</field> |
||||
|
<field name="arch" type="xml"> |
||||
|
<calendar string="Class Scheduled" date_start="from_date" |
||||
|
color="instrument_id" mode="month" |
||||
|
quick_add="False" |
||||
|
event_open_popup="True"> |
||||
|
<field name="name"/> |
||||
|
<field name="teacher_id"/> |
||||
|
</calendar> |
||||
|
</field> |
||||
|
</record> |
||||
|
<!--kanban view defined for the model class type--> |
||||
|
<record id="class_type_view_kanban" model="ir.ui.view"> |
||||
|
<field name="name">class.type.view.kanban</field> |
||||
|
<field name="model">class.type</field> |
||||
|
<field name="arch" type="xml"> |
||||
|
<kanban class="o_res_partner_kanban"> |
||||
|
<templates> |
||||
|
<t t-name="kanban-box"> |
||||
|
<div t-attf-class="oe_kanban_global_click"> |
||||
|
<div class="oe_kanban_details"> |
||||
|
<strong class="o_kanban_record_title"> |
||||
|
<span>Class:</span> |
||||
|
<field name="name"/> |
||||
|
</strong> |
||||
|
<div> |
||||
|
<span> |
||||
|
Service: |
||||
|
</span> |
||||
|
<field name="service_id"/> |
||||
|
<div> |
||||
|
<span>From date:</span> |
||||
|
<field name="from_date"/> |
||||
|
</div> |
||||
|
<div> |
||||
|
<span>To date:</span> |
||||
|
<field name="to_date"/> |
||||
|
</div> |
||||
|
<div> |
||||
|
<field name="instrument_id"/> |
||||
|
</div> |
||||
|
<div> |
||||
|
<span> |
||||
|
Teacher: |
||||
|
</span> |
||||
|
<field name="teacher_id"/> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</t> |
||||
|
</templates> |
||||
|
</kanban> |
||||
|
</field> |
||||
|
</record> |
||||
|
</odoo> |
@ -0,0 +1,31 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8" ?> |
||||
|
<odoo> |
||||
|
<!-- Tree,form,kanban,calendar view action for the model hr employee--> |
||||
|
<record model="ir.actions.act_window" id="hr_employee_action_teacher_creation"> |
||||
|
<field name="name">Teachers</field> |
||||
|
<field name="domain">[('teacher','=', True)]</field> |
||||
|
<field name="context">{'default_teacher':True}</field> |
||||
|
<field name="res_model">hr.employee</field> |
||||
|
<field name="view_mode">kanban,tree,form</field> |
||||
|
</record> |
||||
|
<!-- Teachers menu creation for the model hr employee--> |
||||
|
<menuitem |
||||
|
id="class_type_menu_create_teacher" |
||||
|
name="Teachers" |
||||
|
action="hr_employee_action_teacher_creation" |
||||
|
sequence="2" |
||||
|
parent="music_school_institute_menu_root"/> |
||||
|
<!--Inherited form view defined for the model hr employee--> |
||||
|
<record id="view_employee_form" model="ir.ui.view"> |
||||
|
<field name="name"> |
||||
|
hr.employee.view.form.inherit.music.school.management |
||||
|
</field> |
||||
|
<field name="model">hr.employee</field> |
||||
|
<field name="inherit_id" ref="hr.view_employee_form"/> |
||||
|
<field name="arch" type="xml"> |
||||
|
<xpath expr="//field[@name='coach_id']" position="after"> |
||||
|
<field name="teacher"/> |
||||
|
</xpath> |
||||
|
</field> |
||||
|
</record> |
||||
|
</odoo> |
@ -0,0 +1,35 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8" ?> |
||||
|
<odoo> |
||||
|
<!-- Product template view form inherited to add some extra fields--> |
||||
|
<record id="product_template_only_form_view" model="ir.ui.view"> |
||||
|
<field name="name"> |
||||
|
product.template.view.form.inherit.music.school.management |
||||
|
</field> |
||||
|
<field name="model">product.template</field> |
||||
|
<field name="inherit_id" |
||||
|
ref="product.product_template_only_form_view"/> |
||||
|
<field name="arch" type="xml"> |
||||
|
<xpath expr="//field[@name='sale_ok']" position="before"> |
||||
|
<field name="music_instrument"/> |
||||
|
<label for="music_instrument" string="is instrument"/> |
||||
|
</xpath> |
||||
|
<xpath expr="//field[@name='barcode']" position="after"> |
||||
|
<field name="event_ticket"/> |
||||
|
</xpath> |
||||
|
</field> |
||||
|
</record> |
||||
|
<!--Filtered menu for product template--> |
||||
|
<record model="ir.actions.act_window" id="product_template_action_music_instrument"> |
||||
|
<field name="name">Instruments</field> |
||||
|
<field name="domain">[('music_instrument','=', True)]</field> |
||||
|
<field name="context">{'default_music_instrument':True}</field> |
||||
|
<field name="res_model">product.template</field> |
||||
|
<field name="view_mode">kanban,tree,form</field> |
||||
|
</record> |
||||
|
<!-- Instrument menu creation for the model class type--> |
||||
|
<menuitem |
||||
|
id="product_template_menu_instrument" |
||||
|
name="Instruments" |
||||
|
action="product_template_action_music_instrument" |
||||
|
parent="music_school_institute_menu_root"/> |
||||
|
</odoo> |
@ -0,0 +1,88 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8" ?> |
||||
|
<odoo> |
||||
|
<!--Students filtered menu for res.partner model--> |
||||
|
<record model="ir.actions.act_window" id="res_partner_action_student"> |
||||
|
<field name="name">Students</field> |
||||
|
<field name="domain">[('student','=', True)]</field> |
||||
|
<field name="context">{'default_student':True}</field> |
||||
|
<field name="res_model">res.partner</field> |
||||
|
<field name="view_mode">kanban,tree,form</field> |
||||
|
</record> |
||||
|
<!-- Part-time filtered menu action for res.partner model--> |
||||
|
<record id="res_partner_action_pt_student_creation" model="ir.actions.act_window"> |
||||
|
<field name="name">Part Time</field> |
||||
|
<field name="domain">[('student_type','=', 'part_time')]</field> |
||||
|
<field name="context">{'default_student':True ,'default_student_type':'part_time' }</field> |
||||
|
<field name="res_model">res.partner</field> |
||||
|
<field name="view_mode">kanban,tree,form</field> |
||||
|
</record> |
||||
|
<!-- Full time filtered menu action for res.partner model--> |
||||
|
<record id="res_partner_action_ft_student_creation" model="ir.actions.act_window"> |
||||
|
<field name="name">Full Time</field> |
||||
|
<field name="domain">[('student_type','=', 'full_time')]</field> |
||||
|
<field name="context">{'default_student':True, 'default_student_type':'full_time' }</field> |
||||
|
<field name="res_model">res.partner</field> |
||||
|
<field name="view_mode">kanban,tree,form</field> |
||||
|
</record> |
||||
|
|
||||
|
<!--Course type menu for the model res partner--> |
||||
|
<menuitem id="contact_course_type_menu" name="Students" |
||||
|
parent="music_school_institute_menu_root"/> |
||||
|
<!--Students menu record--> |
||||
|
<menuitem |
||||
|
id="course_type_menu_student" |
||||
|
name="Students" |
||||
|
action="res_partner_action_student" |
||||
|
parent="contact_course_type_menu"/> |
||||
|
|
||||
|
<!-- Part-time menu record--> |
||||
|
<menuitem id="res_partner_menu_pt_student_creation" name="Part Time" |
||||
|
action="res_partner_action_pt_student_creation" |
||||
|
sequence="2" |
||||
|
parent="contact_course_type_menu"/> |
||||
|
<!-- Part-time menu record--> |
||||
|
<menuitem id="res_partner_menu_ft_student_creation" name="Full Time" |
||||
|
action="res_partner_action_ft_student_creation" |
||||
|
sequence="3" |
||||
|
parent="contact_course_type_menu"/> |
||||
|
<!--Event menu record--> |
||||
|
<menuitem |
||||
|
id="event_event_menu_creation" |
||||
|
name="Events" |
||||
|
action="event.action_event_view" |
||||
|
parent="music_school_institute_menu_root"/> |
||||
|
<!--Res partner form view inherited for adding extra fields--> |
||||
|
<record id="view_partner_form" model="ir.ui.view"> |
||||
|
<field name="name"> |
||||
|
res.partner.form.view.inherit.music.school.management |
||||
|
</field> |
||||
|
<field name="model">res.partner</field> |
||||
|
<field name="inherit_id" ref="base.view_partner_form"/> |
||||
|
<field name="arch" type="xml"> |
||||
|
<data> |
||||
|
<xpath expr="//page[@name='contact_addresses']" |
||||
|
position="after"> |
||||
|
<page string="Class details" |
||||
|
attrs="{'invisible':[('student', '=', False)]}"> |
||||
|
<group> |
||||
|
<group> |
||||
|
<field name="classes"/> |
||||
|
</group> |
||||
|
</group> |
||||
|
</page> |
||||
|
</xpath> |
||||
|
<xpath expr="//field[@name='category_id']" position="after"> |
||||
|
<field name="student"/> |
||||
|
<field name="student_type"/> |
||||
|
</xpath> |
||||
|
<div name="button_box" position="inside"> |
||||
|
<button class="oe_stat_button" type="object" |
||||
|
name="class_attendance_view" icon="fa-list-alt"> |
||||
|
<field string="Attendance" name="attendance_count" |
||||
|
widget="statinfo"/> |
||||
|
</button> |
||||
|
</div> |
||||
|
</data> |
||||
|
</field> |
||||
|
</record> |
||||
|
</odoo> |
@ -0,0 +1,44 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8" ?> |
||||
|
<odoo> |
||||
|
<!-- Tree,form,kanban,calendar view action for the model students.attendance--> |
||||
|
<record model="ir.actions.act_window" |
||||
|
id="students_attendance_action"> |
||||
|
<field name="name">Attendance</field> |
||||
|
<field name="res_model">students.attendance</field> |
||||
|
<field name="view_mode">tree,form,kanban</field> |
||||
|
</record> |
||||
|
<!-- Attendance menu creation for the model class type--> |
||||
|
<menuitem |
||||
|
id="student_attendance_menu" |
||||
|
name="Attendance" |
||||
|
action="students_attendance_action" |
||||
|
parent="music_school_institute_menu_root"/> |
||||
|
<!--Form view defined for the model students.attendance--> |
||||
|
<record id="students_attendance_view_form" model="ir.ui.view"> |
||||
|
<field name="name">students.attendance.view.form</field> |
||||
|
<field name="model">students.attendance</field> |
||||
|
<field name="arch" type="xml"> |
||||
|
<form> |
||||
|
<sheet> |
||||
|
<group> |
||||
|
<field name="student_id"/> |
||||
|
<field name="attendance"/> |
||||
|
<field name="date"/> |
||||
|
</group> |
||||
|
</sheet> |
||||
|
</form> |
||||
|
</field> |
||||
|
</record> |
||||
|
<!--Tree view defined for the model students.attendance--> |
||||
|
<record id="students_attendance_view_tree" model="ir.ui.view"> |
||||
|
<field name="name">students.attendance.view.tree</field> |
||||
|
<field name="model">students.attendance</field> |
||||
|
<field name="arch" type="xml"> |
||||
|
<tree> |
||||
|
<field name="student_id"/> |
||||
|
<field name="attendance"/> |
||||
|
<field name="date"/> |
||||
|
</tree> |
||||
|
</field> |
||||
|
</record> |
||||
|
</odoo> |