odoo/odoo#189365
Created by fw-bot
Merged
at 5155e041b0c2365cf08d3f6d6b5483c4dfe88329
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:18.0-17.4-in-holiday-traceback-akha-Y_Rj-fw
- head
- c49a06819d5692dca409dec50544e0c636ab22c2
- 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