You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I try to fix this one but I break my tooth on it :
l = AccountMoveLine.find(:first)
l.reconcile_id
NoMethodError: undefined method []' for nil:NilClass from /Library/Ruby/Gems/1.8/gems/ooor-1.0.9/lib/app/models/open_object_resource.rb:298:inrelationnal_result'
from /Library/Ruby/Gems/1.8/gems/ooor-1.0.9/lib/app/models/open_object_resource.rb:311:in `method_missing'
from (irb):10
Maybe it's due to the fact the field is readonly.
I'm perplex on this one.
Regards
Nicolas
The text was updated successfully, but these errors were encountered:
this was because like the original ActiveResource I was loading the fields only using values, thus not dealing properly with empty relations. But since in OOR we introspect the OpenERP relational model, I now use it to load the relation properly. It's all fixed in OOOR v1.1.0, that has been published on Gemcutter. Wasn't an easy fix, but was very important, thank you for the report, OOOR is in pretty good shape now!
Hello,
I try to fix this one but I break my tooth on it :
l = AccountMoveLine.find(:first)
l.reconcile_id
NoMethodError: undefined method
[]' for nil:NilClass from /Library/Ruby/Gems/1.8/gems/ooor-1.0.9/lib/app/models/open_object_resource.rb:298:in
relationnal_result'from /Library/Ruby/Gems/1.8/gems/ooor-1.0.9/lib/app/models/open_object_resource.rb:311:in `method_missing'
from (irb):10
Maybe it's due to the fact the field is readonly.
I'm perplex on this one.
Regards
Nicolas
The text was updated successfully, but these errors were encountered: