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>
13 lines
335 B
Python
13 lines
335 B
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from . import hr_employee
|
|
from . import hr_timesheet
|
|
from . import ir_http
|
|
from . import ir_ui_menu
|
|
from . import res_company
|
|
from . import res_config_settings
|
|
from . import project
|
|
from . import project_collaborator
|
|
from . import uom
|