hr.work.entry.type: fields, relations and API
The hr.work.entry.type model ("Time Type") is a persistent model declared by the Work Entries module, then extended by 1 other module. It exposes 70 fields, 40 of them declared directly on the model; 32 fields from other models point to it. Below you will find every field with its technical name, type, label and relations, followed by an Odoo 20 JSON-2 API call.
Model identity
- Technical name
hr.work.entry.type- Label
- Time Type
- Type
- Persistent (models.Model)
- SQL table
hr_work_entry_type- Origin module
- Work Entries (
hr_work_entry) - Extended by
- hr_holidays
- Default order (_order)
sequence- Inherits from (mixins)
- mail.threadmail.activity.mixin
Model fields
40 own fields, 24 inherited from mixins and 6 automatic ORM fields. Click a name to get a direct link to that field.
70 of 70 fields shown
| Technical name | Label | Type | Details |
|---|---|---|---|
| active | Active If the active field is set to false, it will allow you to hide the time type without removing it. | boolean | |
| allocation_count | Allocations | integer | computed added by Time Off ( |
| allocation_notif_subtype_id | Allocation Notification Subtype | many2one | added by Time Off ( |
| allocation_validation_type | Approval Select the level of approval needed in case of request by employee # - No validation needed: The employee's request is automatically approved. # - Approved by Time Off Officer: The employee's request need to be manually approved # by the Time Off Officer, Employee's Approver or both. | selection | Values: added by Time Off ( |
| allow_request_on_top | Allow Request on Top If checked, users can request another leave on top of the ones of this type. | boolean | added by Time Off ( |
| allows_negative | Allow Negative If checked, users request can exceed the allocated days and balance can go in negative. | boolean | added by Time Off ( |
| amount_rate | Rate The percentage of wages paid. For standard paid leave set to 100%, for unpaid leave to 0%, or for double-pay to 200%. | float | |
| code | Payroll Code The code is used as a reference in salary rules. Careful, changing an existing code can lead to unwanted behaviors. | char | required |
| color | Color The color selected here will be used in every screen with the time type. | integer | |
| count_as | Count As Determines if the entry counts as working time or absence. | selection | required Values: |
| count_days_as | Count Days as If you take a leave on the whole week, worked days will result in a various number based on the working hours of the employee, calendar days will result in 7 in every case. | selection | Values: added by Time Off ( |
| country_code | Country Code | char | read-only related: |
| country_id | Country | many2one | |
| create_calendar_meeting | Display Time Off in Calendar If this field is checked, every leave request of this type will have a corresponding entry in the calendar application. There will be no entry if this stays unchecked. | boolean | added by Time Off ( |
| description | Description | text | translatable |
| display_code | Display Code This code can be changed, it is only for a display purpose (3 letters max) | char | translatable |
| elligible_for_accrual_rate | Eligible for Accrual Rate If checked, this time type will be taken into account for accruals computation. | boolean | computed, stored added by Time Off ( |
| employee_requests | Allow Employee Requests Extra Days Requests Allowed: User can request an allocation for himself. Not Allowed: User cannot request an allocation. | boolean | required added by Time Off ( |
| external_code | External Code Use this code to export your data to a third party | char | |
| group_days_leave | Group Time Off | float | computed added by Time Off ( |
| has_valid_allocation | Has Valid Allocation This indicates if it is still possible to use this type of leave | boolean | computed added by Time Off ( |
| hide_on_dashboard | Hide On Dashboard Non-visible allocations can still be selected when taking a leave, but will simply not be displayed on the leave dashboard. | boolean | added by Time Off ( |
| include_public_holidays_in_duration | Ignore Public Holidays Public holidays should be counted in the leave duration when applying for leaves | boolean | added by Time Off ( |
| is_used | Is Used | boolean | computed added by Time Off ( |
| leave_notif_subtype_id | Time Off Notification Subtype | many2one | added by Time Off ( |
| leave_validation_type | Time Off Validation | selection | Values: added by Time Off ( |
| leaves_taken | Time off Already Taken This value is given by the sum of all time off requests with a negative value. | float | computed added by Time Off ( |
| max_allowed_negative | Maximum Excess Amount Define the maximum level of negative days this kind of time off can reach. Value must be at least 1. | integer | added by Time Off ( |
| max_leaves | Maximum Allowed This value is given by the sum of all time off requests with a positive value. | float | computed added by Time Off ( |
| name | Name | char | requiredtranslatable |
| request_unit | Duration Type Define the minimum time off duration in which an employee can take when requesting a leave | selection | required Values: added by Time Off ( |
| requires_allocation | Requires Allocation | boolean | required added by Time Off ( |
| resource_calendar_attendance_ids | Resource Calendar Attendance | one2many | read-only inverse: |
| resource_calendar_selectable | Selectable in Working Schedule | boolean | computed, stored |
| sequence | Sequence | integer | |
| support_document | Supporting Document Expected When enabled, employees will see a notice that this leave type requires a supporting document. | boolean | added by Time Off ( |
| time_off_selectable | Selectable in Time Off | boolean | added by Time Off ( |
| unit_of_measure | Unit Define if the time type will be allocated/accrued in hours or days | selection | required Values: added by Time Off ( |
| unpaid | Is Unpaid | boolean | added by Time Off ( |
| virtual_remaining_leaves | Virtual Remaining Time Off Maximum Time Off Allowed - Time Off Already Taken - Time Off Waiting Approval | float | computed added by Time Off ( |
| activity_calendar_event_id | Next Activity Calendar Event | many2one | computed inherited from mail.activity.mixin |
| activity_date_deadline | Next Activity Deadline | date | read-onlycomputed inherited from mail.activity.mixin |
| activity_exception_decoration | Activity Exception Decoration Type of the exception activity on record. | selection | computed Values: inherited from mail.activity.mixin |
| activity_exception_icon | Icon Icon to indicate an exception activity. | char | computed inherited from mail.activity.mixin |
| activity_ids | Activities | one2many | inverse: inherited from mail.activity.mixin |
| activity_plans_ids | Activity Plans | many2many | computed inherited from mail.activity.mixin |
| activity_state | Activity State Status based on activities Overdue: Due date is already passed Today: Activity date is today Planned: Future activities. | selection | computed Values: inherited from mail.activity.mixin |
| activity_summary | Next Activity Summary | char | related: inherited from mail.activity.mixin |
| activity_type_icon | Activity Type Icon | char | related: inherited from mail.activity.mixin |
| activity_type_id | Next Activity Type | many2one | related: inherited from mail.activity.mixin |
| activity_user_id | Responsible User | many2one | read-onlycomputed inherited from mail.activity.mixin |
| has_message | Has Message | boolean | computed inherited from mail.thread |
| message_attachment_count | Attachment Count | integer | computed inherited from mail.thread |
| message_follower_ids | Followers | one2many | inverse: inherited from mail.thread |
| message_has_error | Message Delivery error If checked, some messages have a delivery error. | boolean | computed inherited from mail.thread |
| message_has_error_counter | Number of errors Number of messages with delivery error | integer | computed inherited from mail.thread |
| message_has_sms_error | SMS Delivery error If checked, some messages have a delivery error. | boolean | computed inherited from mail.thread |
| message_ids | Messages | one2many | inverse: inherited from mail.thread |
| message_is_follower | Is Follower | boolean | computed inherited from mail.thread |
| message_needaction | Action Needed If checked, new messages require your attention. | boolean | computed inherited from mail.thread |
| message_needaction_counter | Number of Actions Number of messages requiring action | integer | computed inherited from mail.thread |
| message_partner_ids | Followers (Partners) | many2many | computed inherited from mail.thread |
| my_activity_date_deadline | My Activity Deadline | date | read-onlycomputed inherited from mail.activity.mixin |
| rating_ids | Ratings | one2many | inverse: inherited from mail.thread |
| create_date | Created on | datetime | read-onlyautomatic |
| create_uid | Created by | many2one | read-onlyautomatic |
| display_name | Display Name | char | read-onlycomputedautomatic |
| id | ID | integer | read-onlyautomatic |
| write_date | Last Updated on | datetime | read-onlyautomatic |
| write_uid | Last Updated by | many2one | read-onlyautomatic |
Relations
Models linked from this model
- mail.message.subtype: allocation_notif_subtype_id, leave_notif_subtype_id
- res.country: country_id
- resource.calendar.attendance: resource_calendar_attendance_ids
Fields of other models pointing here
- hr.attendance: work_entry_type_id
- hr.employee: current_work_entry_type_id
- hr.leave: allowed_work_entry_type_ids, work_entry_type_id
- hr.leave.accrual.plan: allowed_work_entry_type_ids, work_entry_type_id
- hr.leave.allocation: allowed_work_entry_type_ids, work_entry_type_id
- hr.leave.allocation.generate.multi.wizard: allowed_work_entry_type_ids, work_entry_type_id
- hr.leave.employee.report: work_entry_type_id
- hr.leave.employee.type.report: work_entry_type_id
- hr.leave.generate.multi.wizard: allowed_work_entry_type_ids, valid_work_entry_type_ids, work_entry_type_id
- hr.leave.report: work_entry_type_id
- hr.leave.report.calendar: work_entry_type_id
- hr.time.rule: allocation_type_id, condition_work_entry_type_ids, country_work_entry_type_ids, work_entry_type_id
- load.public.holiday.wizard.line: allowed_work_entry_type_ids, work_entry_type_id
- res.company: allowed_work_entry_type_ids, attendance_work_entry_type_id, l10n_fr_reference_work_entry_type
- res.config.settings: attendance_work_entry_type_id, l10n_fr_reference_work_entry_type
- resource.calendar.attendance: allowed_work_entry_type_ids, work_entry_type_id
- resource.calendar.leaves: allowed_work_entry_type_ids, work_entry_type_id
Reading this model through the API
Odoo 20 JSON-2 API call reading the first five records with real fields of the model. Replace the instance, database and API key with your own.
curl -X POST "https://your-instance.odoo.com/json/2/hr.work.entry.type/search_read" \
-H "Authorization: bearer $ODOO_API_KEY" \
-H "X-Odoo-Database: your-db" \
-H "Content-Type: application/json" \
-d '{"domain":[],"fields":["name","code","count_as","employee_requests","request_unit"],"limit":5}'import requests
BASE_URL = "https://your-instance.odoo.com/json/2"
headers = {"Authorization": f"bearer {API_KEY}", "X-Odoo-Database": "your-db"}
res = requests.post(
f"{BASE_URL}/hr.work.entry.type/search_read",
headers=headers,
json={"domain": [], "fields": ["name","code","count_as","employee_requests","request_unit"], "limit": 5},
)
res.raise_for_status()
print(res.json())- External API access requires Odoo's Custom plan.
- XML-RPC and JSON-RPC will be removed in Odoo 22 (fall 2028): use JSON-2.
- The access rights and record rules of the key's user apply.
Cite this tool
Writing a tutorial, internal documentation or a forum answer? Copy this link to send your readers to the up-to-date reference.
<a href="https://aidoo.ai/en/outils/explorateur-modeles-odoo/hr-work-entry-type">hr.work.entry.type (Odoo 20.0)</a>Sources
Data verified on September 25, 2026 · Odoo 20.0 Community
Have an Odoo project, or want to put your ERP to work with AI? Let's talk
Implementation, custom module development, connecting Claude or ChatGPT to your data: tell us about your context and we will reply within 24 business hours.