ooor 1.9.1 → 1.9.2

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.
Files changed (2) hide show
  1. data/lib/app/models/type_casting.rb +2 -1
  2. metadata +1 -1
@@ -85,7 +85,8 @@ module Ooor
85
85
 
86
86
  def to_openerp_hash!
87
87
  cast_relations_to_openerp!
88
- @attributes.reject {|k, v| k == 'id'}.merge(@associations)
88
+ blacklist = %w[id write_date create_date write_ui create_ui]
89
+ @attributes.reject {|k, v| blacklist.index(k)}.merge(@associations)
89
90
  end
90
91
 
91
92
  def cast_relations_to_openerp!
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.9.1
4
+ version: 1.9.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: