crisalid_odoo_client 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/crisalid_odoo_client/client.rb +4 -2
- data/lib/crisalid_odoo_client/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 35457358f22b14b15878bbe1d400bc995b738b58cb616c57e760db3ced1d8516
|
4
|
+
data.tar.gz: 2b5f4cd1e8e39321a609ac37518f3079d6a5633e2401fca36976988b0a7e2275
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 64e4438ec65e67abc59fe381158e75855d1d61c8c3b1e333cf22c02b8d220e721659e9d94a54de3c6b50a4b0f997213529b81d2f385b5196b6727780d526766b
|
7
|
+
data.tar.gz: e83a202d138829af6a7feb0e5b1a26d38d5df26027d89ddff091b7b4cb1b4d7f61c9bae15e79aad2310a6c813e688f29d84e419ee7c9aba35f5edc3bf9bdd4de
|
data/Gemfile.lock
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
module CrisalidOdooClient
|
2
2
|
class Client
|
3
|
+
DEFAULT_TIMEOUT = 60
|
4
|
+
|
3
5
|
require 'xmlrpc/client'
|
4
6
|
|
5
7
|
attr_reader :odoo_url
|
@@ -19,7 +21,7 @@ module CrisalidOdooClient
|
|
19
21
|
end
|
20
22
|
|
21
23
|
if @uid != false
|
22
|
-
@models = XMLRPC::Client.new2("#{@odoo_url}/xmlrpc/2/object").proxy
|
24
|
+
@models = XMLRPC::Client.new2("#{@odoo_url}/xmlrpc/2/object", nil, DEFAULT_TIMEOUT).proxy
|
23
25
|
# Client connected
|
24
26
|
else
|
25
27
|
# Client not connected
|
@@ -98,7 +100,7 @@ module CrisalidOdooClient
|
|
98
100
|
|
99
101
|
def connect
|
100
102
|
begin
|
101
|
-
common = XMLRPC::Client.new2("#{@odoo_url}/xmlrpc/2/common")
|
103
|
+
common = XMLRPC::Client.new2("#{@odoo_url}/xmlrpc/2/common", nil, DEFAULT_TIMEOUT)
|
102
104
|
common.call('version')
|
103
105
|
common.call('authenticate', @odoo_db, @odoo_user, @odoo_pass, {})
|
104
106
|
rescue
|