# Functions
DecodeResult takes a buffer, decodes the intermediate JSONRPCResponse and then the contained "result" field into "result".
NewJSONRPCRequest returns a JSON RPC request with its protocol fields populated:
* "id" will be set to a random UUID * "jsonrpc" will be set to "2.0" * "method" will be set to "call" * "params" will be set to whatever was passed in.
Open returns a new client and tries to log in to create a session.
# Constants
DateFormat only yields year, month, day.
DateTimeFormat combines DateFormat with TimeFormat separated by space.
MethodCreate is used to create new records.
MethodDelete is used to delete existing records.
MethodRead is used to read records.
MethodWrite is used to update existing records.
TimeFormat only yields hour, minute, seconds in 24-h format.
# Variables
ErrInvalidCredentials is an error that indicates an authentication error due to missing or invalid credentials.
# Structs
Client is the base struct that holds information required to talk to Odoo.
ClientOptions configures the Odoo client.
JSONRPCError holds error information.
JSONRPCRequest represents a generic json-rpc request.
JSONRPCResponse holds the JSONRPC response.
SearchReadModel is used as "params" in requests to "dataset/search_read" endpoints.
Session information.
WriteModel is used as "params" in requests to "dataset/create", "dataset/write" or "dataset/unlink" endpoints.
# Interfaces
QueryExecutor runs queries against Odoo API.