odoo_client 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4f076564b3eb748af70ac3a22ae5f06da2b299e2b7aa34dc711ce940de269908
4
- data.tar.gz: 1928bedd9869d6257fe9624c3ab04574495b389915ea0bf99b882e271df0cb9b
3
+ metadata.gz: 9a2463e80552146071e8930054a1e1720af31f17056bdb3c2807d4272f811270
4
+ data.tar.gz: e5f17e24902dfa1f2f54681e6cda6090d49524f47526a2ce0feaae01c7b01656
5
5
  SHA512:
6
- metadata.gz: 370e47841f4fcc084a8b196bde815dea8c7c074eccd518e63e126b02fb844c1259c7064a97de9bd3c07acc936143124326d22673ed690b069e47fab8ec8265dc
7
- data.tar.gz: 10140accdab271f2cff75b2ef06de6dcc2c0cbf38d525c941bb9aa2881b37d96115c1c4ee7e5db7154d8bc830bbda45bb9604505747d325933306d78bc8cc4e2
6
+ metadata.gz: 315656cff670717492f722302f851290d8160f1fe4545f1a9be8d3d39422469901dba158341d5283ef8728f93cdf2381c3d36e0db1395174b72b457e8dd6775e
7
+ data.tar.gz: f438b6ab6e2c3521fd3890b19067648c175d078dda69598110301b098349b9b49a3a6a79c3344e1848293f5cd862052d188694e648c54b7ef7bec3b209cca530
data/lib/odoo_client.rb CHANGED
@@ -1,4 +1,4 @@
1
- require 'odoo_client/client'
1
+ require_relative 'odoo_client/client'
2
2
 
3
3
  module OdooClient
4
4
  end
@@ -22,6 +22,10 @@ module OdooClient
22
22
  @common.call('version')["server_version"]
23
23
  end
24
24
 
25
+ def me
26
+ @uid
27
+ end
28
+
25
29
  def count_records(model_name, filters=[])
26
30
  models.execute_kw(@db, @uid, @password, model_name, 'search_count', [filters], {})
27
31
  end
@@ -1,3 +1,3 @@
1
1
  module OdooClient
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: odoo_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Berhang
8
- - Valentin LAMBOLEY
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2020-12-21 00:00:00.000000000 Z
11
+ date: 2021-02-16 00:00:00.000000000 Z
13
12
  dependencies: []
14
13
  description: Ruby Client for Odoo ERP.
15
14
  email:
16
15
  - justin@scratch.com
17
- - valentin.lamboley@zeto.fr
18
16
  executables: []
19
17
  extensions: []
20
18
  extra_rdoc_files: []
@@ -25,7 +23,7 @@ files:
25
23
  - lib/odoo_client/client.rb
26
24
  - lib/odoo_client/version.rb
27
25
  - lib/tasks/odoo_client_tasks.rake
28
- homepage: https://github.com/Yub0/odoo_client
26
+ homepage: https://github.com/jberhang/odoo_client
29
27
  licenses:
30
28
  - MIT
31
29
  metadata: {}
@@ -44,7 +42,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
44
42
  - !ruby/object:Gem::Version
45
43
  version: '0'
46
44
  requirements: []
47
- rubygems_version: 3.1.4
45
+ rubygems_version: 3.2.3
48
46
  signing_key:
49
47
  specification_version: 4
50
48
  summary: Ruby Client for Odoo ERP.