بنقرة واحدة
odoo-time-off
Odoo Time Off (Leave) operations — manage leave requests, allocations, and leave types.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Odoo Time Off (Leave) operations — manage leave requests, allocations, and leave types.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Odoo ERP integration for all 37 business modules. Entry point for Odoo operations — CRM, Sales, Inventory, Manufacturing, Purchase, Accounting, HR, Expenses, Contacts, Calendar, Discuss, Project, Timesheets, Time Off, Attendances, Recruitment, Fleet, Email Marketing, Events, Website, Link Tracker, Dashboards, POS, Delivery, Loyalty, Payments, SMS, Live Chat, Maintenance, Survey, Forum, eLearning, Planning, Restaurant, Certificate, and Data Recycle.
Cross-skill workflow: Odoo ERP health audit, infographic summary, PPTX report, and email delivery via Gmail.
Odoo Accounting operations — manage invoices, bills, journal entries, payments, and financial reports.
Odoo Attendances operations — manage employee check-ins, check-outs, and attendance records.
Odoo Calendar operations — manage events, meetings, and attendee tracking.
Odoo Certificate operations — manage certificates, templates, and certificate issuance.
| name | odoo-time-off |
| description | Odoo Time Off (Leave) operations — manage leave requests, allocations, and leave types. |
| version | 1.0.0 |
| author | Hermes |
| license | MIT |
| platforms | ["linux","macos","windows"] |
| metadata | {"hermes":{"tags":["odoo","time-off","leave","hr","holidays"],"parent_skill":"odoo"}} |
Manage employee leave requests, allocations, and leave types.
Prerequisite: odoo skill must be set up. ODOO = python scripts/odoo_api.py.
ODOO model hr.leave search --limit 20 --fields name,employee_id,holiday_status_id,date_from,date_to,state,number_of_days
ODOO model hr.leave search --domain '[["state","=","confirm"]]' --limit 20 --fields name,employee_id,date_from,date_to,number_of_days
ODOO model hr.leave read 1 --fields name,employee_id,holiday_status_id,date_from,date_to,state,number_of_days,notes
ODOO model hr.leave create '{"name":"Vacation","employee_id":1,"holiday_status_id":1,"date_from":"2026-06-01 00:00:00","date_to":"2026-06-05 23:59:59","request_date_from":"2026-06-01","request_date_to":"2026-06-05"}'
ODOO model hr.leave.type search --limit 20 --fields name,allocation_type,request_unit,validity_start,validity_stop
ODOO model hr.leave.allocation search --limit 20 --fields name,employee_id,holiday_status_id,number_of_days,state
| Model | Use |
|---|---|
hr.leave | Leave requests |
hr.leave.type | Leave types (vacation, sick, etc.) |
hr.leave.allocation | Leave allocations |
draft → confirm → validate1 → validate → refuse
# Authenticate
UID=$(curl -s -X POST $ODOO_URL/jsonrpc -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","method":"call","params":{"service":"common","method":"authenticate","args":[$ODOO_DB,"$ODOO_USER","$ODOO_PASS",{}]},"id":1}' | python3 -c "import sys,json;print(json.load(sys.stdin)['result'])")
# List Time Off
curl -s -X POST $ODOO_URL/jsonrpc -H "Content-Type: application/json" -d "{\"jsonrpc\":\"2.0\",\"method\":\"call\",\"params\":{\"service\":\"object\",\"method\":\"execute_kw\",\"args\":[\"$ODOO_DB\",$UID,\"$ODOO_PASS\",\"hr.leave\",\"search_read\",[[]],{\"limit\":10,\"fields\":[["name", "employee_id", "date_from", "date_to", "state"]]}},\"id\":2}"