Skip to main content

CreateEmployeeAbsenceTypeInput

Create a new absence type in Odoo

input CreateEmployeeAbsenceTypeInput {
abbreviation: String
backgroundColor: String
externalId: String
fontColor: String
holidayEntitlement: Boolean!
name: String!
requestUnit: RequestUnit!
timeType: AbsenceTimeType!
}

Fields​

CreateEmployeeAbsenceTypeInput.abbreviation ● String scalar​

Abbreviation, which is shown in the shift plan overview

CreateEmployeeAbsenceTypeInput.backgroundColor ● String scalar​

Background color when visualizing the element in the shift plan (as a hexadecimal number)

CreateEmployeeAbsenceTypeInput.externalId ● String scalar​

Identifies the absence type in a third-party system. Optional; surrounding whitespace is trimmed and a blank value counts as none. At most 64 characters, and unique per tenant compared case-insensitively, archived types included. It cannot be changed after creation.

Refused with ABSENCE_TYPE_EXTERNAL_ID_FROM_HRWORKS in tenants connected to HR WORKS, where the synchronisation sets it.

CreateEmployeeAbsenceTypeInput.fontColor ● String scalar​

Font color when visualizing the element in the shift plan (as a hexadecimal number)

CreateEmployeeAbsenceTypeInput.holidayEntitlement ● Boolean! non-null scalar​

Is there an entitlement defined in Odoo? (max. number of days that the employee can use this type of leave in a given timeframe)

CreateEmployeeAbsenceTypeInput.name ● String! non-null scalar​

Description of the shift

CreateEmployeeAbsenceTypeInput.requestUnit ● RequestUnit! non-null enum​

The request unit of the leave coming from Odoo Can be either 'day', 'hour' or 'half_day'

CreateEmployeeAbsenceTypeInput.timeType ● AbsenceTimeType! non-null enum​

Type of the absence type (absent or worked time)

Member Of​

createEmployeeAbsenceType mutation