odoo/odoo#187601
Created by Misc, Abdelrahman Khaled (akha)
Merged
at c510d5daa1ceef4fe86eb0dcb6fe0dcac66ee314
Statuses:
- legal/cla: Contributor License Agreement check
- ci/runbot: Odoo Test Suite
- ci/upgrade_enterprise: Test upgrades for enterprise master
- ci/template: Contact runbot team on discord for help.
- ci/style: Optional style check. Ignore it only if strictly necessary.
- ci/security: Required security check. Can only be ignored by security team.
- label
- odoo-dev:17.4-in-holiday-traceback-akha
- head
- c6afa51d79a0b4833e22d3a72f50be0460646060
- merged
- 1 year ago by Misc, Yannick Tivisse (yti)
| odoo/odoo | |
|---|---|
| saas-17.4 | #187601 |
| 18.0 | #189365 |
| saas-18.2 | |
| saas-18.3 | |
| saas-18.4 | |
| 19.0 | |
| master | #189373 |
Show an error when a user tries to take a time off without having an employee in the selected company
Steps to reproduce:
1. Login as Mitchell Admin.
2. Select Indian Company (without selecting any other company).
1. Open Time Off app.
3. Click on any day on the calendar.
4. Confirm the time off.
5. An error will occur.
In order take a time off from the dashboard, the logged in user must have an employee in the selected company. Mitchell Admin doesn't have an employee in the Indian Company which causes the bug. This problem is general and happens when any user tries to take a time off from the dashboard without having an employee in the selected company.
To solve the issue, an error message will appear to the user if they try to take a time off without having an employee in the selected company.