crisalid_odoo_client 1.0.0 → 1.1.0
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.rb +1 -0
- data/lib/crisalid_odoo_client/client.rb +12 -7
- data/lib/crisalid_odoo_client/table/table.rb +4 -0
- data/lib/crisalid_odoo_client/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aa1ac7c04d408162f2b2515d3aed43dd605fc72fbf4b9f40b4e3309d0776d272
|
4
|
+
data.tar.gz: 4fc57373699d7c297fe21d35c9922aef5895b34c3f76712e4df6936a3fa43089
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f69bf1753e6a2e6c9b05ed0f94459c5ba397c7ba0db2e0bb986f5c2b7de65875eab8ed70880284dce2aa95cf00fe23b1b6dbca90610bf011caa6c5efc596a05
|
7
|
+
data.tar.gz: '06853d71fb037af5bd952d27a49b254030ad99cfd0500fb1ad48be2c38480f6f7b69e2e88d44dad0d836cc65377f4a5e3dac9113b73acfe872f37d848a662f73'
|
data/Gemfile.lock
CHANGED
data/lib/crisalid_odoo_client.rb
CHANGED
@@ -34,19 +34,24 @@ module CrisalidOdooClient
|
|
34
34
|
@models.execute_kw(@odoo_db, @uid, @odoo_pass, table, 'search', rules, params)
|
35
35
|
end
|
36
36
|
|
37
|
-
def search_read(table, rules: [[]], params: {})
|
37
|
+
def search_read(table, rules: [[]], params: {}, fields: [])
|
38
|
+
params[:fields] = fields if fields.size > 0
|
39
|
+
|
38
40
|
@models.execute_kw(@odoo_db, @uid, @odoo_pass, table, 'search_read', rules, params)
|
39
41
|
end
|
40
42
|
|
41
|
-
def find(table, ids = [],
|
43
|
+
def find(table, ids = [], params: {}, fields: [], first: false)
|
42
44
|
params[:limit] = 1 if first
|
43
45
|
params[:fields] = fields if fields.size > 0
|
44
46
|
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
47
|
+
@models.execute_kw(@odoo_db, @uid, @odoo_pass, table, 'read', [ids], params)
|
48
|
+
end
|
49
|
+
|
50
|
+
def where(table, rules: [[]], params: {}, fields: [], first: false)
|
51
|
+
params[:limit] = 1 if first
|
52
|
+
params[:fields] = fields if fields.size > 0
|
53
|
+
|
54
|
+
search_read(table, rules: rules, params: params)
|
50
55
|
end
|
51
56
|
|
52
57
|
def create(table, params)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: crisalid_odoo_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Maxime Palanchini
|
@@ -87,6 +87,7 @@ files:
|
|
87
87
|
- lib/crisalid_odoo_client.rb
|
88
88
|
- lib/crisalid_odoo_client/client.rb
|
89
89
|
- lib/crisalid_odoo_client/error/error.rb
|
90
|
+
- lib/crisalid_odoo_client/table/table.rb
|
90
91
|
- lib/crisalid_odoo_client/version.rb
|
91
92
|
homepage: https://github.com/Dakurei/crisalid_odoo_client
|
92
93
|
licenses:
|