create_public_holiday
Add a public holiday to Odoo's working calendar by specifying the name, date, and calendar. This tool configures global time off for employee scheduling and attendance tracking.
Instructions
Create a public holiday in Odoo (global time off on working calendar).
Args:
name: Holiday name (e.g., "Nouvel An", "Fete nationale")
date: Holiday date in YYYY-MM-DD format
calendar_id: Working calendar ID (default: 1 = Standard 40 hours/week)
Returns:
Confirmation with created holiday ID
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>",
"date": "<date>"
},
"name": "create_public_holiday"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| date | Yes | ||
| calendar_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |