summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoruco (OpenERP) <uco@tinyerp.co.in>2010-03-05 16:43:48 +0530
committeruco (OpenERP) <uco@tinyerp.co.in>2010-03-05 16:43:48 +0530
commit0c3e9788cb26f7724f8251d8a51e3446491c40cd (patch)
treee13b4b5f1686328d141083ec2ce01f86101e6dab
parent664c341cae9bce806131c96e4e92a0d87d0d600c (diff)
[ADD]: Added access rules for remaining objects in hr_evaluation and survey modules.
bzr revid: uco@tinyerp.co.in-20100305111348-v7f2smhx0yqdu295
-rw-r--r--addons/hr_evaluation/__terp__.py2
-rw-r--r--addons/hr_evaluation/security/ir.model.access.csv12
-rw-r--r--addons/survey/security/ir.model.access.csv5
3 files changed, 12 insertions, 7 deletions
diff --git a/addons/hr_evaluation/__terp__.py b/addons/hr_evaluation/__terp__.py
index aa462db31f4..0a664f50a88 100644
--- a/addons/hr_evaluation/__terp__.py
+++ b/addons/hr_evaluation/__terp__.py
@@ -30,7 +30,7 @@
"init_xml" : [],
"demo_xml" : ["hr_evaluation_demo.xml"],
"update_xml" : [
-# "security/ir.model.access.csv",
+ "security/ir.model.access.csv",
"hr_evaluation_view.xml",
"hr_evaluation_data.xml"],
"active": False,
diff --git a/addons/hr_evaluation/security/ir.model.access.csv b/addons/hr_evaluation/security/ir.model.access.csv
index 440bcfb9e6d..c9962231e6c 100644
--- a/addons/hr_evaluation/security/ir.model.access.csv
+++ b/addons/hr_evaluation/security/ir.model.access.csv
@@ -1,9 +1,9 @@
"id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink"
"access_hr_evaluation_evaluation","hr_evaluation.evaluation","model_hr_evaluation_evaluation",hr.group_hr_user,1,0,0,0
-"access_hr_evaluation_type","hr_evaluation.type","model_hr_evaluation_type",hr.group_hr_user,1,0,0,0
-"access_hr_evaluation_type_value","hr_evaluation.type.value","model_hr_evaluation_type_value",hr.group_hr_user,1,0,0,0
-"access_hr_evaluation_quote","hr_evaluation.quote","model_hr_evaluation_quote",hr.group_hr_user,1,0,0,0
"access_hr_evaluation_evaluation_manager","hr_evaluation.evaluation","model_hr_evaluation_evaluation",hr.group_hr_manager,1,1,1,1
-"access_hr_evaluation_type_manager","hr_evaluation.type","model_hr_evaluation_type",hr.group_hr_manager,1,1,1,1
-"access_hr_evaluation_type_value_manager","hr_evaluation.type.value","model_hr_evaluation_type_value",hr.group_hr_manager,1,1,1,1
-"access_hr_evaluation_quote_manager","hr_evaluation.quote","model_hr_evaluation_quote",hr.group_hr_manager,1,1,1,1 \ No newline at end of file
+"access_hr_evaluation_plan","hr_evaluation.plan","model_hr_evaluation_evaluation",hr.group_hr_user,1,0,0,0
+"access_hr_evaluation_plan_manager","hr_evaluation.plan","model_hr_evaluation_plan",hr.group_hr_manager,1,1,1,1
+"access_hr_evaluation_plan_phase","hr_evaluation.plan.phase","model_hr_evaluation_plan_phase",hr.group_hr_user,1,0,0,0
+"access_hr_evaluation_plan_phase_manager","hr_evaluation.plan.phase","model_hr_evaluation_plan_phase",hr.group_hr_manager,1,1,1,1
+"access_hr_evaluation_interview","hr.evaluation.interview","model_hr_evaluation_interview",hr.group_hr_user,1,0,0,0
+"access_hr_evaluation_interview_manager","hr.evaluation.interview","model_hr_evaluation_interview",hr.group_hr_manager,1,1,1,1
diff --git a/addons/survey/security/ir.model.access.csv b/addons/survey/security/ir.model.access.csv
index f493078d3fb..bcfe1263829 100644
--- a/addons/survey/security/ir.model.access.csv
+++ b/addons/survey/security/ir.model.access.csv
@@ -1,4 +1,6 @@
"id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink"
+"access_survey_type","survey.type","model_survey_type","group_survey_manager",1,1,1,1
+"access_survey_type","survey.type","model_survey_type","group_survey_user",1,1,1,1
"access_survey_manager","survey","model_survey","group_survey_manager",1,1,1,1
"access_survey_user","survey","model_survey","group_survey_user",1,1,0,0
"access_survey_page_manager","survey.page","model_survey_page","group_survey_manager",1,1,1,1
@@ -24,3 +26,6 @@
"access_survey_tbl_column_heading","survey.tbl.column.heading","model_survey_tbl_column_heading","group_survey_user",1,1,1,1
"access_survey_response_line","survey.response.line","model_survey_response_line","group_survey_manager",1,1,1,1
"access_survey_response_line","survey.response.line","model_survey_response_line","group_survey_user",1,1,1,1
+"access_survey_print_answer","survey.print.answer","model_survey_print_answer","group_survey_manager",1,1,1,1
+"access_survey_print_answer","survey.print.answer","model_survey_print_answer","group_survey_user",1,1,1,1
+