diff options
| author | Lucas Lefèvre <lul@odoo.com> | 2019-09-09 08:04:06 +0000 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2019-09-10 10:41:59 +0000 |
| commit | c55c3e7388be8b132078aa0209149faf90c98ae4 (patch) | |
| tree | dd10aaabd8813f46c82d8f510c2f6f732b5da42f /addons/web_editor/static/src/js/frontend/loader_loading.js | |
| parent | d930a78f35ce7f19b614c3adf0f99880b87ad12b (diff) | |
[FIX] hr_holidays: Restrict employee with leave deletion
It's currently not possible to delete an employee who has leaves
=> traceback.
The employee_id field is set to NULL in the leave table which
breaks the `type_value` constraint (same for allocation).
It should not be allowed to delete an employee with leaves:
for legal puposes in some countries, a record of employee
leaves must be kept.
Instead of deleting the employee, it should be archived.
Diffstat (limited to 'addons/web_editor/static/src/js/frontend/loader_loading.js')
0 files changed, 0 insertions, 0 deletions
