ooor 1.0.7 → 1.0.8

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -150,7 +150,7 @@ here we look for a product in category 1 AND which name is either 'PC1' OR 'PC2'
150
150
 
151
151
  OpenERP context support:
152
152
 
153
- $ ProductProduct.find(1, :context => {:my_key => 'value'}
153
+ $ ProductProduct.find(1, :context => {:my_key => 'value'})
154
154
 
155
155
 
156
156
  Request params or ActiveResource equivalence of OpenERP domain (but degraded as only the = operator is supported, else use domain):
@@ -169,7 +169,7 @@ Relations (many2one, one2many, many2many) support:
169
169
  $ SaleOrder.find(1).order_line
170
170
  $ p = ProductProduct.find(1)
171
171
  $ p.product_tmpl_id #many2one relation
172
- $ p.tax_ids = [6, 0, [1,2]] #create many2many associations,
172
+ $ p.product_tmpl_id.taxes_id = [6, 0, [1,2]] #create many2many associations,
173
173
  $ p.save #assigns taxes with id 1 and 2 as sale taxes,
174
174
  see [the official OpenERP documentation](http://doc.openerp.com/developer/5_18_upgrading_server/19_1_upgrading_server.html?highlight=many2many)
175
175
 
@@ -176,7 +176,7 @@ class OpenObjectResource < ActiveResource::Base
176
176
 
177
177
  # Find a single resource from the default URL
178
178
  def find_single(scope, options)
179
- fields = (options[:fields] and [options[:fields]]) || []
179
+ fields = options[:fields] || []
180
180
  context = options[:context] || {}
181
181
  prefix_options, query_options = split_options(options[:params])
182
182
  is_collection = true
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ooor
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.7
4
+ version: 1.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Raphael Valyi - www.akretion.com
@@ -20,7 +20,7 @@ dependencies:
20
20
  requirements:
21
21
  - - ">="
22
22
  - !ruby/object:Gem::Version
23
- version: "0"
23
+ version: 2.3.1
24
24
  version:
25
25
  description: OOOR exposes business object proxies to your Ruby (Rails or not) application, that map seamlessly to your remote OpenObject/OpenERP server using webservices. It extends the standard ActiveResource API.
26
26
  email: rvalyi@akretion.com