Files
odoo_source/addons/hr/security/ir.model.access.csv
T
RomainLibert d5fd84b89a [IMP] hr: add onboarding/offboarding activity plannings
Purpose
=======

Give the possibility to elaborate plans through Odoo. For instance, in HR,
you could create an onboarding plan when a employee is created. Someone manages
laptop and other equipment, someone check hr stuff, ... This feature is generic
but in a first time we will apply it only on the hr module.

Ease HR process in a company by creating plans: a plan is an assembly of Next
Activities that will be launched together whenever you need it.

Example of plan for an employee onboarding:

Activity: Prepare materials
Responsible: Alain
Deadline: At the contract signature

Activity: Manage Cars
Responsible: Cécile
Deadline: at the contract signature (both signature)

Activity: Plan Training
Responsible: Caroline
Deadline: After signature

Activity: Training
Responsible: Employee
Deadline: 1 week after the employement date

Specifications
==============

On HR Configuration: Add a menu "Activity Plans"

Activity plan object:
 - Name
 - Model (debug mode) (hr by default)
 - Activity Template o2m
    - Activity Type (only the one related to hr)
    - Deadline (come from Activity Type)
    - Responsible \/
        0  Coach
        0  Manager
        0  Other
        [Responsible_name] \/  (coach, manager or manually set if other)

Add datas, 2 plans:

Onboarding
    - Name: Onboarding
    - Plan lines:
        Activity: Setup IT Materials
        Responsible: [a user] (manager)
        Deadline: At the contract signature

        Activity: Plan Training
        Responsible: [manager]
        Deadline: After signature

        Activity: Training
        Responsible: [Employee]
        Deadline: 1 week after the employement date

Offboarding
    - Name: Onboarding
    - Plan lines:
        Activity: Compute Out Delais
        Responsible: [a user] (manager)
        Deadline: today

        Activity: Take Back HR Materials
        Responsible: [manager]
        Deadline: today

        Activity: Manage Car
        Responsible: [manager]
        Deadline: today

When to trigger it ?

HR specific use case:

1/ On employee, from the employee chatter:
when you create an employee, Odoobot will log a note with the following message:
"Congratulations ! May i recommand you to setup an onboarding plan?", with a link
create a plan from it.

2/ Add a button 'launch plan' to open a wizard to select the plan

3/ When archive an employee
Open a wizard with:
    - Reason (selection)
    - Action plan (m2o not required)

Error if employee not linked to a user.

Task : 1912681

closes odoo/odoo#29151
2018-12-18 11:20:54 +00:00

1.3 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_user1000
6access_hr_employee_resource_userresource.resource.userresource.model_resource_resourcegroup_hr_user1111
7access_hr_department_userhr.department.usermodel_hr_departmentgroup_hr_user1111
8access_hr_department_employeehr.department.employeemodel_hr_departmentbase.group_user1000
9access_hr_job_userhr.job usermodel_hr_jobgroup_hr_user1111
10access_ir_property_hr_userir_property hr_userbase.model_ir_propertygroup_hr_user1110
11access_hr_plan_activity_type_employeeaccess_hr_plan_activity_typemodel_hr_plan_activity_typebase.group_user1000
12access_hr_plan_employeeaccess_hr_plan_employeemodel_hr_planbase.group_user1000
13access_hr_plan_activity_type_hr_useraccess_hr_plan_activity_typemodel_hr_plan_activity_typegroup_hr_user1111
14access_hr_plan_hr_useraccess_hr_plan_hr_usermodel_hr_plangroup_hr_user1111