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>
5 lines
140 B
Python
5 lines
140 B
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from . import hr_employee_delete_wizard
|