odoo/odoo#189373
Created by fw-bot
Merged
at 4ce1df175e54d30249f2a645f3d6ca8f8ee60d65
Statuses:
- legal/cla: Contributor License Agreement check
- ci/runbot: Odoo Test Suite
- ci/upgrade_enterprise: Test upgrades for enterprise master
- 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:master-17.4-in-holiday-traceback-akha-ae0Z-fw
- head
- 03924f978755d8032c04d154b053c43249c151d1
- 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 |
[FW] 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.
Forward-Port-Of: #187601