crisalid_odoo_client 1.2.3 → 1.2.4
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 +6 -6
- 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: b1e621d494600cfce376de0c40f6ef4c61ec75c79c119d43d8c69d71553b9594
|
4
|
+
data.tar.gz: a068e59d3d471bc9219ea0796ff97b05967bd7dd82a5552ef985cfc0cb33b812
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0633234c6fe8c7082128551cf8b15da6439e12d93047404047ca52007b38f71b2edd807432f61be49b0ac62cf8cde793ad245687990fdb3a655a11d44cf0808
|
7
|
+
data.tar.gz: 82126cdaadd810d3b8902c820f175d3ce717b3f7a366b7cdc8eeb6e79a68ee0136812781e11ce8905f23227c9003bae54c5b654e3362623df7351991519ede12
|
data/Gemfile.lock
CHANGED
@@ -60,7 +60,7 @@ module CrisalidOdooClient
|
|
60
60
|
if params.is_a?(Hash) && params.size > 0
|
61
61
|
@models.execute_kw(@odoo_db, @uid, @odoo_pass, table, 'create', [params])
|
62
62
|
else
|
63
|
-
raise CrisalidOdooClient::Error::OdooResourceManagerError
|
63
|
+
raise CrisalidOdooClient::Error::OdooResourceManagerError.new('params must be a non empty Hash')
|
64
64
|
end
|
65
65
|
end
|
66
66
|
|
@@ -69,10 +69,10 @@ module CrisalidOdooClient
|
|
69
69
|
if params.is_a?(Array) && params.size > 0 && params.first.is_a?(Array) && params.first.size == headers.size
|
70
70
|
@models.execute_kw(@odoo_db, @uid, @odoo_pass, table, 'load', [headers, params])["ids"]
|
71
71
|
else
|
72
|
-
raise CrisalidOdooClient::Error::OdooResourceManagerError
|
72
|
+
raise CrisalidOdooClient::Error::OdooResourceManagerError.new('params must be a non empty Array of Array who has the same size as headers')
|
73
73
|
end
|
74
74
|
else
|
75
|
-
raise CrisalidOdooClient::Error::OdooResourceManagerError
|
75
|
+
raise CrisalidOdooClient::Error::OdooResourceManagerError.new('headers must be a non empty Array')
|
76
76
|
end
|
77
77
|
end
|
78
78
|
|
@@ -80,7 +80,7 @@ module CrisalidOdooClient
|
|
80
80
|
if params.is_a?(Hash) && params.size > 0 && ids.is_a?(Array) && ids.size > 0
|
81
81
|
@models.execute_kw(@odoo_db, @uid, @odoo_pass, table, 'write', [ids, params])
|
82
82
|
else
|
83
|
-
raise CrisalidOdooClient::Error::OdooResourceManagerError
|
83
|
+
raise CrisalidOdooClient::Error::OdooResourceManagerError.new('params must be a non empty Hash and ids must be a non empty Array')
|
84
84
|
end
|
85
85
|
end
|
86
86
|
|
@@ -88,7 +88,7 @@ module CrisalidOdooClient
|
|
88
88
|
if ids.is_a?(Array) && ids.size > 0
|
89
89
|
@models.execute_kw(@odoo_db, @uid, @odoo_pass, table, 'unlink', [ids])
|
90
90
|
else
|
91
|
-
raise CrisalidOdooClient::Error::OdooResourceManagerError
|
91
|
+
raise CrisalidOdooClient::Error::OdooResourceManagerError.new('ids must be a non empty Array')
|
92
92
|
end
|
93
93
|
end
|
94
94
|
|
@@ -104,7 +104,7 @@ module CrisalidOdooClient
|
|
104
104
|
common.call('version')
|
105
105
|
common.call('authenticate', @odoo_db, @odoo_user, @odoo_pass, {})
|
106
106
|
rescue
|
107
|
-
raise CrisalidOdooClient::Error::OdooConnectionError
|
107
|
+
raise CrisalidOdooClient::Error::OdooConnectionError.new('Error on connection, check the url and the database values')
|
108
108
|
end
|
109
109
|
end
|
110
110
|
|