updateSessionId method
Returns new OdooSession instance with updated session id
Implementation
OdooSession updateSessionId(String newSessionId) {
return OdooSession(
id: newSessionId,
userId: newSessionId == '' ? 0 : userId,
partnerId: newSessionId == '' ? 0 : partnerId,
userLogin: newSessionId == '' ? '' : userLogin,
userName: newSessionId == '' ? '' : userName,
userLang: newSessionId == '' ? '' : userLang,
userTz: newSessionId == '' ? '' : userTz,
isSystem: newSessionId == '' ? false : isSystem,
dbName: newSessionId == '' ? '' : dbName,
serverVersion: newSessionId == '' ? '' : serverVersion,
);
}