Skip to main content

LeaveAllocation

Represents a leave allocation object in Odoo

type LeaveAllocation {
absenceType: EmployeeAbsenceType!
designation: String!
employee: Employee!
id: OdooID!
numberOfDays: Float!
status: LeaveAllocationStatus!
validFrom: Date!
validTo: Date
}

Fields

LeaveAllocation.absenceType ● EmployeeAbsenceType! non-null object

Leave type that the allocation applies to

LeaveAllocation.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.

LeaveAllocation.employee ● Employee! non-null object

Employee that the allocation applies to

LeaveAllocation.id ● OdooID! non-null scalar

Unique identifier

LeaveAllocation.numberOfDays ● Float! non-null scalar

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

LeaveAllocation.status ● LeaveAllocationStatus! non-null enum

Shows of the allocation record has been approved

LeaveAllocation.validFrom ● Date! non-null scalar

Start of the leave allocation's validity

LeaveAllocation.validTo ● Date scalar

End of the leave allocation's validity. Null means the allocation is open-ended and does not expire ("unbegrenzt").

Returned By

approveLeaveAllocation mutation ● createLeaveAllocation mutation ● createLeaveAllocations mutation ● editLeaveAllocation mutation ● leaveAllocations query ● rejectLeaveAllocation mutation