ERP-Ukraine / odoo-rpc-dart

Odoo RPC Library for Dart
MIT License
44 stars 35 forks source link

connection with https #3

Closed function2000 closed 3 years ago

function2000 commented 3 years ago

When I use https, and error occurs as below image

function2000 commented 3 years ago

by the way, I update it like this, maybe you can think about to change it in your code:

return OdooSession(
  id: info['id'] as String,
  userId: info['uid'] as int,
  partnerId: info['partner_id'] as int,
  companyId: info['company_id'] as int,
  userLogin: info['username'] as String,
  userName: info['name'] as String,
  userLang: ctx['lang'] as String,
  userTz: ctx['tz'] ? 'true':'false',
  isSystem: info['is_system'] as bool,
  dbName: info['db'] as String,
  serverVersion: versionInfo[0] as int,
);
lem8r commented 3 years ago

When I use https, and error occurs as below image

Which version of odoo are you running?

function2000 commented 3 years ago

it is version 13.