Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when trying to get data #174

Open
Yub0 opened this issue Aug 30, 2018 · 5 comments
Open

Error when trying to get data #174

Yub0 opened this issue Aug 30, 2018 · 5 comments

Comments

@Yub0
Copy link

Yub0 commented Aug 30, 2018

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

@nonnenmacher
Copy link

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.

@reneveyj
Copy link

reneveyj commented Oct 3, 2019

Has anyone found a solution to this?

@nonnenmacher
Copy link

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.

@rvalyi
Copy link
Member

rvalyi commented Oct 4, 2019

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...

@nonnenmacher
Copy link

nonnenmacher commented Oct 4, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants