Time off.
A request for days off becomes an answer, a new balance and fewer hours in the capacity plan. Odoo checks the balance when the request is saved, code checks the skills and hours left at work, the head decides, and a refusal always carries a reason and another date.
- Company
- Demo Manufacturer LLC and Demo Manufacturer US Inc.
- Starts when
- An employee asks for time off
- How often
- Any working day, one run per request
The diagram goes on to the side. Drag it, or use the two buttons.
Steps
Steps in order
| # | Step | Done by | Tolerance | Rollout stage |
|---|---|---|---|---|
| 1 | Employee asks for days off Selected | Employee | Not above the balance and 1 more | 6 |
| 2 | Code checks cover and dates Selected | Time off checks · Automation, no AI | At least one other person with each skill of the post at work every day and 5 more | 6 |
| 3 | Production manager decides Selected | Production manager | None - the person decides and 1 more | 6 |
| 4 | Office manager tells reason and date Selected | Office manager | The reason names a check or the head's sentence and 1 more | 6 |
| 5 | Code books the days Selected | Time off booking · Automation, no AI | Days and dates exact and 1 more | 6 |
Rollout stage: 6 · Month-end close and approvals.
Before
How it was done before
Requests came by letter or in a corridor, the office manager wrote them into a Google Sheet, and the US company asked the Ukrainian office by email. Nobody looked at the production plan.
Where it breaks without control
- Both people who can balance propellers are off in the week of the largest order.
- An employee cancels approved days in Odoo, and neither the capacity plan nor the pay learns of it.
- The kind of leave or the reason typed by the person appears in a calendar that everybody reads.
Controls
What is checked, and who signs
Checks
| Step | Compared with | Tolerance | On a difference |
|---|---|---|---|
| 1 · Employee asks for days off | Days asked against the balance, which also counts requests still waiting, and against the person's other requests | Not above the balance; no day asked twice | Odoo does not save a request without enough balance or on top of another one and says why. The employee changes the days or the kind, or asks the office manager to check the balance. Nobody files a request for another person except the office manager, with the reason in the record. |
| 2 · Code checks cover and dates | Days asked against other people's days off by skill, against the hours planned that week, against hours recorded, against the dates of the contract and the papers of the kind | At least one other person with each skill of the post at work every day; in production, planned hours not above the hours left at the work centre; no hour recorded on a day asked; days inside first and last working day; unpaid days inside the yearly limit; paper attached where the kind needs it | Code refuses nothing. The request goes to the head with the failed check in plain words and the dates that would pass. A request for past days with hours recorded on them also goes to the office manager, so that either the hours or the leave is removed before pay. |
| 3 · Production manager decides | The request against the failed checks and the orders due that week | None - the person decides; an answer within 2 working days | A request with a failed check can be approved only with a written reason, which the capacity plan shows. Nobody decides on their own request - the head's goes to the owner. Odoo would let the office manager, as its time off officer, approve any request; our module leaves the answer to the head. A request without an answer after 2 working days is shown to the owner. |
| 4 · Office manager tells reason and date | The reason against the checks and the head's sentence; each date offered against the checks of today | The reason names a check or the head's sentence; every date offered passes all checks | A refusal without a reason goes back to the head and stays on the office manager's list. A date that no longer passes is replaced. Choosing one of the dates is a new request in step 1. |
| 5 · Code books the days | Balance before less the days approved against the balance now; dates of the calendar event and hours taken out of the plan against the request | Days and dates exact; hours exact | The request waits in the exception queue of the office manager. Odoo lets a person cancel approved days that lie ahead, so a cancellation runs this step backwards - event removed, hours given back, the head told. A change to days that pay has already used is listed for the next period, never written into a closed one. The kind of leave is open to the head, the owner, the office manager and the accountant only. |
Duties by role
| Role | Does | Accountable for |
|---|---|---|
| Employee | 1 · Employee asks for days off | None |
| Automation, no AI | 2 · Code checks cover and dates 5 · Code books the days | None |
| Production manager | 3 · Production manager decides | 1 · Employee asks for days off 2 · Code checks cover and dates 3 · Production manager decides |
| Office manager | 4 · Office manager tells reason and date | 4 · Office manager tells reason and date 5 · Code books the days |
What the action log records
| Step | Record | What is written |
|---|---|---|
| 2 · Code checks cover and dates | Agent action log | One line per check result |
| 5 · Code books the days | Agent action log | One line per change |
Connected processes
Where the work comes from and where it goes
Work goes to
| Process | What passes | At step |
|---|---|---|
| Production capacity plan | Hours not available, by week and work centre | Code books the days |
| Monthly payroll | Approved days by person and kind, and each later change | Code books the days |
Work comes from
| Process | What passes | At step |
|---|---|---|
| Joining and leaving | An opening balance, or the days left on the last day | Code writes the record and the tasks |
Want this process checked on your data?
Tell us where it goes wrong.