OdooSession class
Represents session with Odoo server.
Constructors
- OdooSession({required String id, required int userId, required int partnerId, required int companyId, required String userLogin, required String userName, required String userLang, required String userTz, required bool isSystem, required String dbName, required String serverVersion})
-
OdooSession is immutable.
const
Properties
- companyId → int
-
User's company database id
final
- dbName → String
-
Database name
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Current Session id
final
- isSystem → bool
-
Is internal user or not
final
- partnerId → int
-
User's partner database id
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- serverVersion → String
-
Server Major version
final
- serverVersionInt → int
-
serverVersionInt returns Odoo server major version as int.
It is useful for for cases like
no setter
- userId → int
-
User's database id
final
- userLang → String
-
User's language
final
- userLogin → String
-
User's login
final
- userName → String
-
User's name
final
- userTz → String
-
User's Time zone
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Stores OdooSession to JSON
-
toString(
) → String -
String representation of OdooSession object.
override
-
updateSessionId(
String newSessionId) → OdooSession - Returns new OdooSession instance with updated session id
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromJson(
Map< String, dynamic> json) → OdooSession - Restore OdooSession from JSON
-
fromSessionInfo(
Map< String, dynamic> info) → OdooSession - Creates OdooSession instance from odoo session info object.