From 3751379f1e9a4c215fb6eb898b4ccc67659b9ace Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Tue, 10 May 2022 21:51:50 +0700 Subject: initial commit 2 --- addons/hr_contract/security/ir.model.access.csv | 6 +++++ addons/hr_contract/security/security.xml | 34 +++++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 addons/hr_contract/security/ir.model.access.csv create mode 100644 addons/hr_contract/security/security.xml (limited to 'addons/hr_contract/security') diff --git a/addons/hr_contract/security/ir.model.access.csv b/addons/hr_contract/security/ir.model.access.csv new file mode 100644 index 00000000..5ad33d10 --- /dev/null +++ b/addons/hr_contract/security/ir.model.access.csv @@ -0,0 +1,6 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_hr_resource_manager,hr.employee.resource.manager,resource.model_resource_resource,hr.group_hr_manager,1,1,1,1 +access_hr_resource_calendar_user,hr.employee.resource.calendar.user,resource.model_resource_calendar,hr.group_hr_user,1,1,1,1 +access_hr_resource_calendar_attendance_user,hr.employee.resource.calendar.attendance.user,resource.model_resource_calendar_attendance,hr.group_hr_user,1,1,1,1 +access_hr_contract_manager,hr.contract.manager,model_hr_contract,hr_contract.group_hr_contract_manager,1,1,1,1 +access_hr_payroll_structure_type_hr_contract_manager,hr.payroll.structure.type.contract.manager,model_hr_payroll_structure_type,hr_contract.group_hr_contract_manager,1,1,1,1 diff --git a/addons/hr_contract/security/security.xml b/addons/hr_contract/security/security.xml new file mode 100644 index 00000000..e65a83d4 --- /dev/null +++ b/addons/hr_contract/security/security.xml @@ -0,0 +1,34 @@ + + + + + Helps you manage your contracts. + 10 + + + + Administrator + + + + + + + + + + + HR Contract: Multi Company + + ['|', ('company_id', '=', False), ('company_id', 'in', company_ids)] + + + + HR Payroll Structure Type: Multi Company + + + ['|', ('country_id', '=', False), ('country_id', 'in', user.env.companies.mapped('country_id').ids)] + + + + -- cgit v1.2.3