ooor icon indicating copy to clipboard operation
ooor copied to clipboard

Error when trying to get data

Open Yub0 opened this issue 7 years ago • 5 comments

Hello,

I'm trying to get data from OOOR. He return "changed?" error. I'm running on Rails 5

`

return :

undefined method `changed?' for nil:NilClass

when trying :

puts ProductProduct.find :last `

config file : development: url: http://url:8069/xmlrpc database: db username: user password: pass bootstrap: true

thanks

Yub0 avatar Aug 30 '18 13:08 Yub0

Hi Yub0

certainly too late, but did you made sure to require the git version of roor in your Gemfile ?

I got the same error and finally it worked with spacing the gem line indicating git source in my Gemfile.

#   git 'master branch' version say its 2.3.0 where rubygems pretend its 2.4.0
#gem 'ooor' , :git => "https://github.com/akretion/ooor"

I tested only with gem 'rails', '~> 5.1.0' as I don't use Rails at all, but need some of its Suport modules.

nonnenmacher avatar Sep 19 '18 08:09 nonnenmacher

Has anyone found a solution to this?

reneveyj avatar Oct 03 '19 09:10 reneveyj

Seems that there no much people working on it. We use it internally so I decided to fork it, for preparing a PR for Rails 6 support but didn't had time yet to prepare for a proper PR here.

nonnenmacher avatar Oct 04 '19 07:10 nonnenmacher

Hello all, PR's are welcome. I'm the original author of the gem. However we have currently no very active project using it (Sadly our biggest Brazilian customer using it bankrupted in the 2015 economic crisis in Brazil). Still I used it a bit to migrate data between 2 Odoo instances 2 weeks ago. Meanwhile Akretion is still very active with plugging Rails and Odoo together through our home built open source e-commerce: ShopInvader: http://shopinvader.com

Shopinvader is very much based on things that have been prototyped using Apache Solr and ooor (for that Brazilian startup that bankrupted). However the approach is different as we only request on an Elastic Search datastore for read requests and we request Odoo not via ooor but via a controlled and specific ShopInvader API which as the advantage of bringing more control (and possibly security) in this ecommerce context. There is still a room to use ooor in ShopInvader when lots of customizations are done, so we are still very much interrested in maintaining ooor, I also made a gem enabling to use ooor in Liquid templates...

I'm also pretty sure people using it in Rails don't make the most of it because of lack of documentation on how we attach an ooor session to a rack session for instance (hence we translate to Rails the multi-db and multi-user ORM features of Odoo)...

That being said, being based in Brazil, our hourly rates are pretty affordable these days so if you need some specific things to be done in ooor, feel free to contract with us. This is absolutely not the only way to get things moving forward, but this is a safest one...

rvalyi avatar Oct 04 '19 13:10 rvalyi

I don't know for Jocelyn use case, but we don't use OOOR in a Rails context, but still the classical Business in Model aproach we don't have too much impendance mistmatch with the AR like approach you have adopted.

So its fit for a lot of case, without too much problem, the only thing is to make sure, to be able to leave in the minimal dependency set of Rail 5/6.

I had very low modifications count, so we could certainly share part of the burden, as comparing OOOR usage in a Ruby idiomatic fashion as a real pleasure (and nice to the eye) compared to use RPC directly.

Smooth as silk ;-) Thank your for that.

On Fri, Oct 4, 2019 at 3:33 PM Raphaël Valyi [email protected] wrote:

Hello all, PR's are welcome. I'm the original author of the gem. However we have currently no very active project using it (Sadly our biggest Brazilian customer using it bankrupted in the 2015 economic crisis in Brazil). Still I used it a bit to migrate data between 2 Odoo instances 2 weeks ago. Meanwhile Akretion is still very active with plugging Rails and Odoo together through our home built open source e-commerce: ShopInvader: http://shopinvader.com

Shopinvader is very much based on things that have been prototyped using Apache Solr and ooor (for that Brazilian startup that bankrupted). However the approach is different as we only request on an Elastic Search datastore for read requests and we request Odoo not via ooor but via a controlled and specific ShopInvader API which as the advantage of bringing more control (and possibly security) in this ecommerce context. There is still a room to use ooor in ShopInvader when lots of customizations are done, so we are still very much interrested in maintaining ooor, I also made a gem enabling to use ooor in Liquid templates...

I'm also pretty sure people using it in Rails don't make the most of it because of lack of documentation on how we attach an ooor session to a rack session for instance (hence we translate to Rails the multi-db and multi-user ORM features of Odoo)...

That being said, being based in Brasil, our hourly rates are pretty affordable these days so if you need some specific things to be done in ooor, feel free to contract with us. This is absolutely not the only way to get things moving forward, but this is a safest one...

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/akretion/ooor/issues/174?email_source=notifications&email_token=AADLUV4I7UNXFOFWYKPFBF3QM5A3RA5CNFSM4FSOEKZ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEALU7EY#issuecomment-538398611, or mute the thread https://github.com/notifications/unsubscribe-auth/AADLUV6OJGLDPMBN6MHVLNTQM5A3RANCNFSM4FSOEKZQ .

nonnenmacher avatar Oct 04 '19 15:10 nonnenmacher