diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 21:51:50 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 21:51:50 +0700 |
| commit | 3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch) | |
| tree | a44932296ef4a9b71d5f010906253d8c53727726 /addons/hr_recruitment/security | |
| parent | 0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff) | |
initial commit 2
Diffstat (limited to 'addons/hr_recruitment/security')
| -rw-r--r-- | addons/hr_recruitment/security/hr_recruitment_security.xml | 33 | ||||
| -rw-r--r-- | addons/hr_recruitment/security/ir.model.access.csv | 14 |
2 files changed, 47 insertions, 0 deletions
diff --git a/addons/hr_recruitment/security/hr_recruitment_security.xml b/addons/hr_recruitment/security/hr_recruitment_security.xml new file mode 100644 index 00000000..9979890a --- /dev/null +++ b/addons/hr_recruitment/security/hr_recruitment_security.xml @@ -0,0 +1,33 @@ +<?xml version="1.0" encoding="utf-8"?> +<odoo noupdate="1"> + + <record model="ir.module.category" id="base.module_category_human_resources_recruitment"> + <field name="description">Helps you manage your recruitments.</field> + <field name="sequence">11</field> + </record> + + <record id="hr_applicant_comp_rule" model="ir.rule"> + <field name="name">Applicant multi company rule</field> + <field name="model_id" ref="model_hr_applicant"/> + <field eval="True" name="global"/> + <field name="domain_force">['|',('company_id','=',False),('company_id', 'in', company_ids)]</field> + </record> + + <record id="group_hr_recruitment_user" model="res.groups"> + <field name="name">Officer</field> + <field name="category_id" ref="base.module_category_human_resources_recruitment"/> + <field name="implied_ids" eval="[(4, ref('hr.group_hr_user'))]"/> + </record> + + <record id="group_hr_recruitment_manager" model="res.groups"> + <field name="name">Administrator</field> + <field name="category_id" ref="base.module_category_human_resources_recruitment"/> + <field name="implied_ids" eval="[(4, ref('group_hr_recruitment_user'))]"/> + <field name="users" eval="[(4, ref('base.user_root')), (4, ref('base.user_admin'))]"/> + </record> + + <record id="base.default_user" model="res.users"> + <field name="groups_id" eval="[(4,ref('hr_recruitment.group_hr_recruitment_manager'))]"/> + </record> + +</odoo> diff --git a/addons/hr_recruitment/security/ir.model.access.csv b/addons/hr_recruitment/security/ir.model.access.csv new file mode 100644 index 00000000..316301c5 --- /dev/null +++ b/addons/hr_recruitment/security/ir.model.access.csv @@ -0,0 +1,14 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
+access_hr_applicant_user,hr.applicant.user,model_hr_applicant,group_hr_recruitment_user,1,1,1,1
+access_hr_recruitment_stage_user,hr.recruitment.stage.user,model_hr_recruitment_stage,group_hr_recruitment_user,1,0,0,0
+access_hr_recruitment_stage_manager,hr.recruitment.stage.manager,model_hr_recruitment_stage,group_hr_recruitment_manager,1,1,1,1
+access_hr_recruitment_degree,hr.recruitment.degree,model_hr_recruitment_degree,group_hr_recruitment_user,1,1,1,1
+access_hr_recruitment_refuse_reason,hr.applicant.refuse.reason,model_hr_applicant_refuse_reason,group_hr_recruitment_user,1,1,1,1
+access_res_partner_hr_user,res.partner.user,base.model_res_partner,group_hr_recruitment_user,1,1,1,1
+access_calendar_event_hruser,calendar.event.hruser,calendar.model_calendar_event,group_hr_recruitment_user,1,1,1,1
+access_hr_recruitment_source_hr_officer,hr.recruitment.source,model_hr_recruitment_source,group_hr_recruitment_user,1,1,1,1
+access_hr_recruitment_source_all,hr.recruitment.source,model_hr_recruitment_source,,1,0,0,0
+access_hr_applicant_category,hr.applicant_category,model_hr_applicant_category,,1,1,1,0
+access_hr_applicant_category_manager,hr.applicant_category,model_hr_applicant_category,group_hr_recruitment_user,1,1,1,1
+access_calendar_event_type_hr_officer,calendar.event.type.officer,calendar.model_calendar_event_type,group_hr_recruitment_user,1,1,1,0
+access_applicant_get_refuse_reason,access.applicant.get.refuse.reason,model_applicant_get_refuse_reason,hr_recruitment.group_hr_recruitment_user,1,1,1,0
|
