resource.resource: fields, relations and API
The resource.resource model ("Resources") is a persistent model declared by the Resource module, then extended by 4 other modules. It exposes 30 fields, 24 of them declared directly on the model; 4 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 19 JSON-2 API call.
Model identity
- Technical name
resource.resource- Label
- Resources
- Type
- Persistent (models.Model)
- SQL table
resource_resource- Origin module
- Resource (
resource) - Extended by
- resource_mail, hr, hr_holidays, hr_skills
- Default order (_order)
name
Model fields
24 own fields, 0 inherited from mixins and 6 automatic ORM fields. Click a name to get a direct link to that field.
30 of 30 fields shown
| Technical name | Label | Type | Details |
|---|---|---|---|
| active | Active If the active field is set to False, it will allow you to hide the resource record without removing it. | boolean | |
| avatar_128 | Avatar 128 | image | computed |
| calendar_id | Working Time Define the working schedule of the resource. If not set, the resource will have fully flexible working hours. | many2one | |
| color | Color | integer | added by Resource Mail ( |
| company_id | Company | many2one | |
| department_id | Department | many2one | computed added by Employees ( |
char | related: | ||
| employee_id | Employee | one2many | inverse: added by Employees ( |
| employee_skill_ids | Employee Skill | one2many | related: added by Skills Management ( |
| hr_icon_display | Hr Icon Display | selection | related: added by Employees ( |
| im_status | Im Status | char | related: added by Resource Mail ( |
| job_title | Job Title | char | computed added by Employees ( |
| leave_date_to | Leave Date To | date | related: added by Time Off ( |
| name | Name | char | required |
| phone | Phone | char | related: |
| resource_type | Type | selection | required Values: |
| share | Share | boolean | related: |
| show_hr_icon_display | Show Hr Icon Display | boolean | related: added by Employees ( |
| time_efficiency | Efficiency Factor This field is used to calculate the expected duration of a work order at this work center. For example, if a work order takes one hour and the efficiency factor is 100%, then the expected duration will be one hour. If the efficiency factor is 200%, however the expected duration will be 30 minutes. | float | required |
| tz | Timezone | selection | required Values computed at runtime |
| user_id | User Related user name for the resource to manage its access. | many2one | |
| work_email | Work Email | char | related: added by Employees ( |
| work_location_id | Work Location | many2one | related: added by Employees ( |
| work_phone | Work Phone | char | related: added by Employees ( |
| 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
- hr.department: department_id
- hr.employee: employee_id
- hr.employee.skill: employee_skill_ids
- hr.work.location: work_location_id
- res.company: company_id
- res.users: user_id
- resource.calendar: calendar_id
Fields of other models pointing here
- hr.employee: resource_id
- hr.employee.public: resource_id
- resource.calendar.leaves: resource_id
- resource.mixin: resource_id
Reading this model through the API
Odoo 19 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/resource.resource/search_read" \
-H "Authorization: bearer $ODOO_API_KEY" \
-H "X-Odoo-Database: your-db" \
-H "Content-Type: application/json" \
-d '{"domain":[],"fields":["name","resource_type","time_efficiency","tz","calendar_id"],"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}/resource.resource/search_read",
headers=headers,
json={"domain": [], "fields": ["name","resource_type","time_efficiency","tz","calendar_id"], "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/resource-resource">resource.resource (Odoo 19.0)</a>Sources
Data verified on September 23, 2026 · Odoo 19.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.