ExtendedOdooClient class

Constructors

ExtendedOdooClient(String serverUrl, {OdooSession? sessionId, BaseClient? httpClient, bool isWebPlatform = false})

Properties

baseURL String
Odoo server URL in format proto://domain:port
getter/setter pairinherited
frontendLang String
Language used by user on website. It may be different from OdooSession.userLang
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
httpClient ↔ BaseClient
HTTP client instance. By default instantiated with http.Client. Could be overridden for tests or custom client configuration.
getter/setter pairinherited
inRequestStream Stream<bool>
Returns stream of inRequest events
no setterinherited
inRequestStreamDone Future
no setterinherited
isWebPlatform bool
Add a flag to check if we're on web platform. kIsWeb can be used to indicate if we're on web platform.
finalinherited
loginStream Stream<OdooLoginEvent>
Returns stream of login events
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sessionId → OdooSession?
Returns current session
no setterinherited
sessionStream Stream<OdooSession>
Returns stream of session changed events
no setterinherited

Methods

authenticate(String db, String login, String password) Future<OdooSession>
Authenticates user for given database. This call receives valid session on successful login which we be reused for future RPC calls.
inherited
callKw(dynamic params) Future
Calls any public method on a model.
inherited
callRPC(dynamic path, dynamic funcName, dynamic params) Future
Low Level RPC call. It has to be used on all Odoo Controllers with type='json'
inherited
checkSession() Future
Checks if current session is valid. Throws OdooSessionExpiredException if session is not valid.
inherited
close() → void
Frees HTTP client resources
inherited
destroySession() Future<void>
Destroys current session.
inherited
getDatabaseList() Future<List<String>>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited