Skip to content

Commit

Permalink
Merge pull request #46 from ajaychauhan727/master_refactor_cha
Browse files Browse the repository at this point in the history
Refactor from existing 8.0 branch and compatible with Odoo v9.0
  • Loading branch information
parthivgls committed Oct 9, 2015
2 parents e6a9aca + d60656f commit 97cdbca
Show file tree
Hide file tree
Showing 872 changed files with 24,649 additions and 48,032 deletions.
6 changes: 6 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,9 @@ exclude_lines =

# Don't complain about null context checking
if context is None:

# Don't complain about odoo basic imports checking
from openerp import models, fields, api

# Don't complain about odoo basic imports checking
from openerp*
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ python:
- "2.7"

env:
- VERSION="8.0" LINT_CHECK="1"
- VERSION="8.0" ODOO_REPO="odoo/odoo" LINT_CHECK="0" INCLUDE="openeducat_erp"
- VERSION="8.0" ODOO_REPO="OCA/OCB" LINT_CHECK="0" INCLUDE="openeducat_erp"
- VERSION="9.0" LINT_CHECK="1"
- VERSION="9.0" ODOO_REPO="odoo/odoo" LINT_CHECK="0" EXCLUDE="openeducat_erp"
- VERSION="9.0" ODOO_REPO="OCA/OCB" LINT_CHECK="0" EXCLUDE="openeducat_erp"


virtualenv:
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[![Build Status](https://travis-ci.org/openeducat/openeducat_erp.svg?branch=8.0)](https://travis-ci.org/openeducat/openeducat_erp)
[![Coverage Status](https://coveralls.io/repos/github/openeducat/openeducat_erp/badge.svg?branch=8.0)](https://coveralls.io/github/openeducat/openeducat_erp?branch=8.0)
[![Coverage Status](https://coveralls.io/repos/ajaychauhan727/openeducat_erp/badge.svg?branch=master_refactor_cha&service=github)](https://coveralls.io/github/ajaychauhan727/openeducat_erp?branch=master_refactor_cha)

OpenEduCat for Odoo 8
=====================

Expand Down
25 changes: 25 additions & 0 deletions openeducat_achievement/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# Tech-Receptives Solutions Pvt. Ltd.
# Copyright (C) 2009-TODAY Tech Receptives(<http://www.techreceptives.com>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License 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 Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################

from . import models


# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
47 changes: 47 additions & 0 deletions openeducat_achievement/__openerp__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# -*- coding: utf-8 -*-
###############################################################################
#
# Tech-Receptives Solutions Pvt. Ltd.
# Copyright (C) 2009-TODAY Tech-Receptives(<http://www.techreceptives.com>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License 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 Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
###############################################################################

{
'name': 'OpenEduCat Achievement',
'version': '2.0.0',
'category': 'Openerp Education',
"sequence": 3,
'summary': 'Manage Achievement',
'complexity': "easy",
'description': """
This module adds the feature of achievement in Openeducat
""",
'author': 'Tech Receptives',
'website': 'http://www.openeducat.org',
'depends': ['openeducat_core'],
'data': [
'views/achievement_view.xml',
'views/achievement_type_view.xml',
'security/ir.model.access.csv',
'achievement_menu.xml',
],
'installable': True,
'auto_install': False,
'application': True,
}


# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
12 changes: 12 additions & 0 deletions openeducat_achievement/achievement_menu.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<openerp>
<data>
<menuitem id="menu_op_achievement_type_sub" name="Achievement Types"
parent="openeducat_core.menu_op_school_config_activity" sequence="30"
action="act_open_op_achievement_type_view" groups="openeducat_core.group_op_back_office_admin" />

<menuitem id="menu_op_achievement_main" name="Achievements"
parent="openeducat_core.menu_op_general_main" sequence="60"
action="act_open_op_achievement_view" groups="openeducat_core.group_op_back_office,openeducat_core.group_op_back_office_admin" />
</data>
</openerp>
117 changes: 117 additions & 0 deletions openeducat_achievement/i18n/openeducat_achievement.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * openeducat_achievement
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 8.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-09-28 10:54+0000\n"
"PO-Revision-Date: 2015-09-28 10:54+0000\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: openeducat_achievement
#: view:op.achievement:openeducat_achievement.view_op_achievement_form
#: view:op.achievement:openeducat_achievement.view_op_achievement_search
#: view:op.achievement:openeducat_achievement.view_op_achievement_tree
msgid "Achievement"
msgstr ""

#. module: openeducat_achievement
#: view:op.achievement:openeducat_achievement.view_op_achievement_search
#: field:op.achievement,achievement_type:0
#: view:op.achievement.type:openeducat_achievement.view_op_achievement_type_form
#: view:op.achievement.type:openeducat_achievement.view_op_achievement_type_search
#: view:op.achievement.type:openeducat_achievement.view_op_achievement_type_tree
msgid "Achievement Type"
msgstr ""

#. module: openeducat_achievement
#: model:ir.actions.act_window,name:openeducat_achievement.act_open_op_achievement_type_view
#: model:ir.ui.menu,name:openeducat_achievement.menu_op_achievement_type_sub
msgid "Achievement Types"
msgstr ""

#. module: openeducat_achievement
#: model:ir.actions.act_window,name:openeducat_achievement.act_open_op_achievement_view
#: model:ir.ui.menu,name:openeducat_achievement.menu_op_achievement_main
msgid "Achievements"
msgstr ""

#. module: openeducat_achievement
#: view:op.achievement.type:openeducat_achievement.view_op_achievement_type_search
#: field:op.achievement.type,code:0
msgid "Code"
msgstr ""

#. module: openeducat_achievement
#: field:op.achievement,create_uid:0
#: field:op.achievement.type,create_uid:0
msgid "Created by"
msgstr ""

#. module: openeducat_achievement
#: field:op.achievement,create_date:0
#: field:op.achievement.type,create_date:0
msgid "Created on"
msgstr ""

#. module: openeducat_achievement
#: view:op.achievement:openeducat_achievement.view_op_achievement_search
#: field:op.achievement,achievement_date:0
msgid "Date"
msgstr ""

#. module: openeducat_achievement
#: view:op.achievement:openeducat_achievement.view_op_achievement_search
#: field:op.achievement,description:0
msgid "Description"
msgstr ""

#. module: openeducat_achievement
#: view:op.achievement:openeducat_achievement.view_op_achievement_search
#: field:op.achievement,faculty_id:0
msgid "Faculty"
msgstr ""

#. module: openeducat_achievement
#: view:op.achievement:openeducat_achievement.view_op_achievement_search
#: view:op.achievement.type:openeducat_achievement.view_op_achievement_type_search
msgid "Group By..."
msgstr ""

#. module: openeducat_achievement
#: field:op.achievement,id:0
#: field:op.achievement.type,id:0
msgid "ID"
msgstr ""

#. module: openeducat_achievement
#: field:op.achievement,write_uid:0
#: field:op.achievement.type,write_uid:0
msgid "Last Updated by"
msgstr ""

#. module: openeducat_achievement
#: field:op.achievement,write_date:0
#: field:op.achievement.type,write_date:0
msgid "Last Updated on"
msgstr ""

#. module: openeducat_achievement
#: view:op.achievement.type:openeducat_achievement.view_op_achievement_type_search
#: field:op.achievement.type,name:0
msgid "Name"
msgstr ""

#. module: openeducat_achievement
#: view:op.achievement:openeducat_achievement.view_op_achievement_search
#: field:op.achievement,student_id:0
msgid "Student"
msgstr ""

25 changes: 25 additions & 0 deletions openeducat_achievement/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# Tech-Receptives Solutions Pvt. Ltd.
# Copyright (C) 2009-TODAY Tech Receptives(<http://www.techreceptives.com>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License 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 Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################

from . import achievement
from . import achievement_type

# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
36 changes: 36 additions & 0 deletions openeducat_achievement/models/achievement.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# -*- coding: utf-8 -*-
###############################################################################
#
# Tech-Receptives Solutions Pvt. Ltd.
# Copyright (C) 2009-TODAY Tech-Receptives(<http://www.techreceptives.com>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License 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 Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
###############################################################################

from openerp import models, fields


class OpAchievement(models.Model):
_name = 'op.achievement'
_rec_name = 'student_id'

student_id = fields.Many2one('op.student', 'Student', required=True)
faculty_id = fields.Many2one('op.faculty', 'Faculty', required=True)
achievement_type = fields.Many2one(
'op.achievement.type', 'Achievement Type', required=True)
description = fields.Text('Description', required=True)
achievement_date = fields.Date('Date', required=True)

# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
31 changes: 31 additions & 0 deletions openeducat_achievement/models/achievement_type.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# -*- coding: utf-8 -*-
###############################################################################
#
# Tech-Receptives Solutions Pvt. Ltd.
# Copyright (C) 2009-TODAY Tech-Receptives(<http://www.techreceptives.com>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License 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 Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
###############################################################################

from openerp import models, fields


class OpAchievementType(models.Model):
_name = 'op.achievement.type'

name = fields.Char('Name', size=256, required=True)
code = fields.Char('Code', size=4, required=True)

# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
4 changes: 4 additions & 0 deletions openeducat_achievement/security/ir.model.access.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
"id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink"
"access_op_achievement","name_op_achievement","model_op_achievement","base.group_user",1,1,1,0
"access_op_achievement_type","name_op_achievement_type","model_op_achievement_type","base.group_user",1,1,1,0
"access_op_achievement_type_back_office","name_op_achievement_type_back_office","model_op_achievement_type","openeducat_core.group_op_back_office",1,0,0,0
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 97cdbca

Please sign in to comment.