Commit 188a3fe
committed
[FIX] hr: correctly remove m2o link between user and employee
Currently, a user needs to be time off, expense and timesheet approver
of an employee for those links to be removed by the departure wizard.
If not all the approver fields are the same user, that link will not be
removed.
Steps to reproduce:
- Set Marc Demo as only Time Off approver on an employee.
- Archive Marc Demo's employee (This does not remove time off approver
from the previous employee)
To rectify this issue, we correctly group the `user_domain` so that
their contents are properly OR'd.
closes odoo#217680
X-original-commit: 1b65d85
Signed-off-by: Bertrand Dossogne (bedo) <bedo@odoo.com>
Signed-off-by: Simon Goffaux (sigo) <sigo@odoo.com>1 parent 6deba5e commit 188a3fe
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
494 | 494 | | |
495 | 495 | | |
496 | 496 | | |
497 | | - | |
| 497 | + | |
498 | 498 | | |
499 | 499 | | |
500 | 500 | | |
| |||
0 commit comments