Expand description
The base Odoo API types
This module contains raw types and impls for the Odoo API methods.
As a crate user, you shouldn’t need to interact with these directly. Instead, see crate::client
.
API Methods
Method | Description | Auth? |
---|---|---|
execute | Call a business-logic method on an Odoo model (positional args) | Yes |
execute_kw | Call a business-logic method on an Odoo model (positional & keyword args) | Yes |
TBC
Method | Description | Auth? |
---|---|---|
create | Create a new record (or set of records) | Yes |
read | Read data from a record (or set of records) | Yes |
read_group | Read some grouped data from a record (or set of records) | Yes |
write | Write data to a record (or set of records) | Yes |
unlink | Delete a record (or set of records) | Yes |
search | Return the ids of records matching a domain | Yes |
search_count | Return the count of records matching a domain | Yes |
search_read | Perform a search and read in one call | Yes |
copy | Copy a record | Yes |
exists | Check if the record(s) exist in the Odoo database | Yes |
check_access_rights | Check model access rights (according to ir.model.access ) | Yes |
check_access_rules | Check model access rules (according to ir.rule ) | Yes |
check_field_access_rights | Check the user access rights on the given fields | Yes |
get_metadata | Return some metadata about the given record(s) | Yes |
get_external_id | Fetch the XMLID for the given record(s) | Yes |
get_xml_id | Fetch the XMLID for the given record(s) | Yes |
name_get | Fetch the display_naame for the given record(s) | Yes |
name_create | Create a new record, passing only the name field | Yes |
name_search | Search for records based on their name field | Yes |
Method | Description | Auth? |
---|---|---|
common_login | Check the user credentials and return the user ID | - |
common_authenticate | Check the user credentials and return the user ID (web) | - |
common_version | Fetch detailed information about the Odoo version | - |
common_about | Fetch basic information about the Odoo version | - |
Method | Description | Auth? |
---|---|---|
db_create_database | Create and initialize a new database | - |
db_duplicate_database | Duplicate a database | - |
db_drop | Drop (delete) a database | - |
db_dump | Dump (backup) a database, optionally including the filestore folder | - |
db_restore | Upload and restore an Odoo dump to a new database | - |
db_rename | Rename a database | - |
db_change_admin_password | Change the Odoo “master password” | - |
db_migrate_database | Perform a “database migration” (upgrade the base module) | - |
db_exist | Check if a database exists | - |
db_list | List the databases currently available to Odoo | - |
db_list_lang | List the languages available to Odoo (ISO name + code) | - |
db_list_countries | List the countries available to Odoo (ISO name + code) | - |
db_server_version | Return the server version | - |
Method | Description | Auth? |
---|---|---|
web_session_authenticate | Docs TBC | - |
Modules
- The Odoo “common” service (JSON-RPC)
- The Odoo “db” service (JSON-RPC)
- The Odoo “object” service (JSON-RPC)
- The Odoo “ORM” pseudo-service
- The Odoo “Web” pseudo-service