*: account,event_sale,fleet,hr_attendance,hr_contract,hr_timesheet, im_livechat,point_of_sale,project When the user tries to delete a record(s) from the reporting views, this traceback will be generated. Steps to produce (Example only): - Settings > Technical > Actions > Window Actions - Search for the Work Entries Analysis. Open it and add a 'tree' as view_mode in that action. - Payroll > Reporting > Work Entries Analysis menu and select the tree view. - Select one or more records and try to delete these records. Error: A traceback appears: "cannot delete from view "hr_work_entry_report" Handled the unlink access by using their model access of the reporting models. similarly, this issue resolves in other reporting models. Sentry-3975590063 closes odoo/odoo#125697 X-original-commit: 209d8c76ce9bb1d6cc7084d55b5623e939af8fbc Related: odoo/enterprise#42825 Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
1.0 KiB
1.0 KiB
| 1 | id | name | model_id:id | group_id:id | perm_read | perm_write | perm_create | perm_unlink |
|---|---|---|---|---|---|---|---|---|
| 2 | access_hr_resource_manager | hr.employee.resource.manager | resource.model_resource_resource | hr.group_hr_manager | 1 | 1 | 1 | 1 |
| 3 | access_hr_resource_calendar_user | hr.employee.resource.calendar.user | resource.model_resource_calendar | hr.group_hr_user | 1 | 1 | 1 | 1 |
| 4 | 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 |
| 5 | access_hr_contract_manager | hr.contract.manager | model_hr_contract | hr_contract.group_hr_contract_manager | 1 | 1 | 1 | 1 |
| 6 | access_hr_contract_history_manager | hr.contract.history.manager | model_hr_contract_history | hr_contract.group_hr_contract_manager | 1 | 0 | 0 | 0 |
| 7 | 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 |
| 8 | access_hr_contract_hr_employee_manager | hr.contract.hr.employee.manager | model_hr_contract | hr_contract.group_hr_contract_employee_manager | 1 | 0 | 0 | 0 |