LeaveAllocation
Represents a leave allocation object in Odoo
type LeaveAllocation {
absenceType: EmployeeAbsenceType!
employee: Employee!
id: OdooID!
numberOfDays: Int!
status: LeaveAllocationStatus!
validFrom: Date!
validTo: Date!
}
Fields
LeaveAllocation.absenceType ● EmployeeAbsenceType! non-null object
Leave type that the allocation applies to
LeaveAllocation.employee ● Employee! non-null object
Employee that the allocation applies to
LeaveAllocation.id ● OdooID! non-null scalar
Unique identifier
LeaveAllocation.numberOfDays ● Int! non-null scalar
Total number of allocated days
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! non-null scalar
End of the leave allocation's validity
Returned By
approveLeaveAllocation mutation ● createLeaveAllocation mutation ● editLeaveAllocation mutation ● leaveAllocations query ● rejectLeaveAllocation mutation