Files
odoo_source/addons/hr_timesheet/security/ir.model.access.csv
T
Kartik Chavda b80c01de11 [IMP] hr_timesheet: add employee delete wizard for employee
Before this commit user can directly delete employees even though
employees have timesheets that make employee field in timesheet
black which is not right behavior because in timesheet employee
field is required.

This commit adds a delete wizard for employee delete action
if employees have any timesheet then user cannot delete that
employees without deleting timesheets instead user can archive
that employees.

task-2938632

closes odoo/odoo#98233

Related: odoo/enterprise#30481
Signed-off-by: Xavier Bol (xbo) <xbo@odoo.com>
2022-11-14 12:03:54 +01:00

1.1 KiB

1idnamemodel_id:idgroup_id:idperm_readperm_writeperm_createperm_unlink
2access_account_analytic_line_useranalytic.account.analytic.line.timesheet.useranalytic.model_account_analytic_linehr_timesheet.group_hr_timesheet_user1111
3access_account_analytic_useranalytic.account.analytic.timesheet.useranalytic.model_account_analytic_accounthr_timesheet.group_hr_timesheet_user1100
4access_uom_uom_hr_timesheetuom.uom.timesheet.useruom.model_uom_uomhr_timesheet.group_hr_timesheet_user1000
5access_project_projectproject.project.timesheet.usermodel_project_projecthr_timesheet.group_hr_timesheet_user1000
6access_project_taskproject.task.timesheet.usermodel_project_taskhr_timesheet.group_hr_timesheet_user1100
7access_timesheets_analysis_report_managertimesheets.analysis.reportmodel_timesheets_analysis_reporthr_timesheet.group_timesheet_manager1111
8access_timesheets_analysis_report_usertimesheets.analysis.reportmodel_timesheets_analysis_reporthr_timesheet.group_hr_timesheet_user1010
9access_hr_employee_delete_wizardhr.employee.delete.wizardmodel_hr_employee_delete_wizardhr.group_hr_user1110