Files
odoo_source/addons/hr/security/ir.model.access.csv
T
Pierre-Yves Dufays 7053e37df1 [IMP] hr(_contract/_fleet): convert hr.plan to mail.activity.plan
We convert the custom plan implementation to use the generic one. As the
generic one can define plans for multiple model. We use the check
dedicated_to_res_model == 'hr.employee' to activate the specific feature for
hr.employee. Indeed, that field contains the model name when the plan is
applicable only for one model.

We also remove the 'launch plan' button as we can now launch a plan directly
from the activities button in the chatter.

Technical notes:
For the activity schedule wizard, we add the support for active_ids and
active_model as default values for res_ids and res_model because it is used as
link in the chatter to launch the wizard and we want to avoid a big migration
by keeping the link identical (and there are probably no simple solution to
keep the same behavior).

HR CONTRACT

Before the first contract date of the first selected element was chosen to
determine the planned due date if all first contract date were different
otherwise the minimum was chosen. So if the selection included 2 different date
among 3, the minimum was chosen but the first if the 3 were different.
With this change, the minimum is always used to determine the default planned
due date.

Task-3390865

Part-of: odoo/odoo#137969
2023-10-12 16:12:09 +00:00

1.7 KiB

1idnamemodel_id:idgroup_id:idperm_readperm_writeperm_createperm_unlink
2access_hr_employee_category_userhr.employee.category.usermodel_hr_employee_categorygroup_hr_user1111
3access_hr_employee_category_emphr.employee.category.empmodel_hr_employee_categorybase.group_user1000
4access_hr_employee_userhr.employee usermodel_hr_employeegroup_hr_user1111
5access_hr_employee_system_userhr.employee system usermodel_hr_employeebase.group_system1000
6access_hr_employee_public_userhr.employee_publicmodel_hr_employee_publicbase.group_user1000
7access_hr_employee_resource_userresource.resource.userresource.model_resource_resourcegroup_hr_user1111
8access_hr_department_userhr.department.usermodel_hr_departmentgroup_hr_user1111
9access_hr_department_employeehr.department.employeemodel_hr_departmentbase.group_user1000
10access_hr_job_userhr.job usermodel_hr_jobgroup_hr_user1111
11access_hr_departure_wizardaccess.hr.departure.wizardmodel_hr_departure_wizardhr.group_hr_user1110
12access_hr_work_location_useraccess_hr_work_location_usermodel_hr_work_locationbase.group_user1000
13access_hr_work_location_manageraccess_hr_work_location_managermodel_hr_work_locationgroup_hr_manager1111
14access_hr_departure_reasonaccess_hr_departure_reason_usermodel_hr_departure_reasongroup_hr_user1111
15access_hr_contract_type_managerhr.contract.type.managermodel_hr_contract_typehr.group_hr_user1111
16access_mail_activity_plan_hr_managermail.activity.plan.hr.managermail.model_mail_activity_planhr.group_hr_manager1111
17access_mail_activity_plan_template_hr_managermail.activity.plan.template.hr.managermail.model_mail_activity_plan_templatehr.group_hr_manager1111