Browse Source

[ADD] Security

pull/81/head
SHEREEF PT 8 years ago
parent
commit
9957ab99ab
  1. 3
      workload_in_project/__openerp__.py
  2. 44
      workload_in_project/__openerp__.py~
  3. 2
      workload_in_project/security/ir.model.access.csv
  4. 4
      workload_in_project/views/employee_workload_report_view.xml

3
workload_in_project/__openerp__.py

@ -22,7 +22,7 @@
##############################################################################
{
'name': 'Workload In Project',
'version': '9.0.1.0.0',
'version': '9.0.2.0.0',
'summary': """Calculate The Workload For Employees In Project""",
'description': 'This module helps you to calculate workload for employees',
'category': 'Project Management',
@ -31,6 +31,7 @@
'website': "http://www.cybrosys.com",
'depends': ['base', 'project'],
'data': [
'security/ir.model.access.csv',
'views/employee_workload_report_view.xml',
'reports/employee_workload_report.xml',
],

44
workload_in_project/__openerp__.py~

@ -0,0 +1,44 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
# Copyright (C) 2016-TODAY Cybrosys Technologies(<http://www.cybrosys.com>).
# Author: Jesni Banu(<http://www.cybrosys.com>)
# you can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
#
# It is forbidden to publish, distribute, sublicense, or sell copies
# of the Software or modified copies of the Software.
#
# 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
# GENERAL PUBLIC LICENSE (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
{
'name': 'Workload In Project',
'version': '9.0.1.0.0',
'summary': """Calculate The Workload For Employees In Project""",
'description': 'This module helps you to calculate workload for employees',
'category': 'Project Management',
'author': 'Cybrosys Techno Solutions',
'company': 'Cybrosys Techno Solutions',
'website': "http://www.cybrosys.com",
'depends': ['base', 'project'],
'data': [
'security/ir.model.access.csv',
'views/employee_workload_report_view.xml',
'reports/employee_workload_report.xml',
],
'images': ['static/description/banner.jpg'],
'license': 'LGPL-3',
'demo': [],
'installable': True,
'auto_install': False,
'application': False,
}

2
workload_in_project/security/ir.model.access.csv

@ -0,0 +1,2 @@
id,name,model_id/id,group_id/id,perm_read,perm_write,perm_create,perm_unlink
workload_res_user_access_right_manager,workload_res_user_access_right,base.model_res_users,project.group_project_manager,1,1,0,0
1 id name model_id/id group_id/id perm_read perm_write perm_create perm_unlink
2 workload_res_user_access_right_manager workload_res_user_access_right base.model_res_users project.group_project_manager 1 1 0 0

4
workload_in_project/views/employee_workload_report_view.xml

@ -106,8 +106,8 @@
name="workload_in_project.report_employee_workload"
file="workload_in_project.report_employee_workload"/>
<menuitem name="Report" parent="base.menu_main_pm" id="workload_report" sequence="5"/>
<menuitem name="Users" parent="base.menu_main_pm" id="project_users" action="project_action_res_users" sequence="4"/>
<menuitem name="Report" parent="base.menu_main_pm" id="workload_report" sequence="5" groups="project.group_project_manager"/>
<menuitem name="Users" parent="base.menu_main_pm" id="project_users" action="project_action_res_users" sequence="4" groups="project.group_project_manager"/>
<menuitem name="Employee Workload" parent="workload_report" id="employee_workload_report" action="wizard_workload_report_act" sequence="1"/>
</data>

Loading…
Cancel
Save