Skip to main content

CreateLeaveAllocationInput

Input for editing an existing leave allocation

input CreateLeaveAllocationInput {
absenceTypeId: OdooID!
designation: String!
employeeId: EmployeeID!
numberOfDays: Float!
validFrom: Date!
validTo: Date
}

Fields

CreateLeaveAllocationInput.absenceTypeId ● OdooID! non-null scalar

Leave type that the allocation applies to

CreateLeaveAllocationInput.designation ● String! non-null scalar

Designation (Bezeichnung) of the leave allocation. Written to Odoo as the description of the allocation record; doubles as the justification for the entitlement.

CreateLeaveAllocationInput.employeeId ● EmployeeID! non-null scalar

Employee that the allocation applies to

CreateLeaveAllocationInput.numberOfDays ● Float! non-null scalar

Total number of allocated days. Fractional for half-day or hour based absence types.

CreateLeaveAllocationInput.validFrom ● Date! non-null scalar

Start of the leave allocation's validity

CreateLeaveAllocationInput.validTo ● Date scalar

End of the leave allocation's validity. Optional; leaving it empty creates an open-ended entitlement ("unbegrenzt").

Member Of

createLeaveAllocation mutation