# Packages
No description provided by the author
# Functions
DecodeResult takes a buffer, decodes the intermediate JSONRPCResponse and then the contained "result" field into "result".
IsWithinTimeRange returns true if the date is between the given times.
LocalizeTime returns the same time but with a different location.
Midnight returns a new time object in midnight (most recently past).
MustParseDate parses the given value in DateFormat or panics if it fails.
MustParseDateTime parses the given value in DateTimeFormat or panics if it fails.
NewClient returns a new Client.
NewDate returns a new Date.
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.
No description provided by the author
Open returns a new Session by trying to log in.
ParseDate parses the given value in DateFormat in UTC.
ParseDateTime parses the given value in DateTimeFormat in UTC.
RestoreSession restores a Session based on existing Session.SessionID and Session.UID.
# Constants
No description provided by the author
No description provided by the author
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.
No description provided by the author
# 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.
Date is an Odoo-specific format of a timestamp.
JSONRPCError holds error information.
JSONRPCRequest represents a generic json-rpc request.
JSONRPCResponse holds the JSONRPC response.
List contains a slice of T.
LoginOptions contains all necessary authentication parameters.
SearchReadModel is used as "params" in requests to "dataset/search_read" endpoints.
Session information.
TimeZone represents a time zone in Odoo.
WriteModel is used as "params" in requests to "dataset/create", "dataset/write" or "dataset/unlinke" endpoints.
# Interfaces
Filter to use in queries, usually in the format of [predicate, operator, value], eg ["employee_id.user_id.id", "=", 123].
QueryExecutor runs queries against Odoo API.
# Type aliases
Method identifies the type of write operation.