class Multiwoven::Integrations::Source::Odoo::Client

def create_connection(connection_config)

def create_connection(connection_config)
  common = XMLRPC::Client.new2("#{connection_config[:url]}/xmlrpc/2/common")
  common.call("version")
  @uid = common.call("authenticate", connection_config[:database], connection_config[:username],
                     connection_config[:password], { 'raise_exception': true })
  @client = XMLRPC::Client.new2("#{connection_config[:url]}/xmlrpc/2/object").proxy
  connection_config
end