Module db

Source
Expand description

The Odoo “db” service (JSON-RPC)

This service handles database-management related methods (like create, drop, etc)

Note that you will see some methods that require a passwd argument. This is not the Odoo user password (database-level). Instead, it’s the Odoo server-level “master password”, which can be found in the Odoo .conf file as the admin_passwd key.

Structs§

ChangeAdminPassword
Change the Odoo “master password”
ChangeAdminPasswordResponse
The response to a ChangeAdminPassword request
CreateDatabase
Create and initialize a new database
CreateDatabaseResponse
The response to a CreateDatabase request
DbExist
Check if a database exists
DbExistResponse
The response to a DbExist request
Drop
Drop (delete) a database
DropResponse
The response to a Drop request
Dump
Dump (backup) a database, optionally including the filestore folder
DumpResponse
The response to a Dump request
DuplicateDatabase
Duplicate a database
DuplicateDatabaseResponse
The response to a DuplicateDatabase request
List
List the databases currently available to Odoo
ListCountries
List the countries available to Odoo (ISO name + code)
ListCountriesResponse
The response to a ListCountries request
ListCountriesResponseItem
A single country item from the ListCountries request
ListLang
List the languages available to Odoo (ISO name + code)
ListLangResponse
The response to a ListLang request
ListLangResponseItem
A single language item from the ListLang request
ListResponse
The response to a List request
MigrateDatabases
Perform a “database migration” (upgrade the base module)
MigrateDatabasesResponse
The response to a MigrateDatabases request
Rename
Rename a database
RenameResponse
The response to a Rename request
Restore
Upload and restore an Odoo dump to a new database
RestoreResponse
The response to a Restore request
ServerVersion
Return the server version
ServerVersionResponse
The response to a ServerVersion request

Enums§

DumpFormat
The format for a database dump
RestoreType
The type of database restore