summaryrefslogtreecommitdiff
path: root/doc/reference/javascript_reference.rst
diff options
context:
space:
mode:
authorLucas Lefèvre <lul@odoo.com>2019-09-09 08:04:06 +0000
committerYannick Tivisse <yti@odoo.com>2019-09-10 10:41:59 +0000
commitc55c3e7388be8b132078aa0209149faf90c98ae4 (patch)
treedd10aaabd8813f46c82d8f510c2f6f732b5da42f /doc/reference/javascript_reference.rst
parentd930a78f35ce7f19b614c3adf0f99880b87ad12b (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 'doc/reference/javascript_reference.rst')
0 files changed, 0 insertions, 0 deletions