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

No UUID specified for label #11

Open
alexander-arce opened this issue Nov 20, 2015 · 5 comments
Open

No UUID specified for label #11

alexander-arce opened this issue Nov 20, 2015 · 5 comments

Comments

@alexander-arce
Copy link

Hi,
I try to import data from OpenErp/Odoo. Models are generated using Rmre.
In my test, i want import data only from pos_order model, but process fail with message
No UUID specified for label AccountJournal
Anyone trying to import data from OpenErp/Odoo?

@cheerfulstoic
Copy link
Contributor

What command did you try running, or was it via Ruby code? That error makes me think that it's trying to import all tables

@alexander-arce
Copy link
Author

Hi @cheerfulstoic
I try running
neo4apis activerecord models pos_order --neo4j-url "http://xxxx:xx@localhost:7474" --identify-model --import-all-associations --debug
Debug message is:

Importing tables: pos_order
include_list
[:account_invoice, :account_journal, :account_move, :pos_order_lines, :pos_order_line_commissions, >:account_bank_statement_lines, :pos_session, :product_pricelist, :res_company, :res_partner, >:res_user, :sale_shop, :stock_picking]

Error message:

/home/aletz/.rvm/gems/ruby-2.2.0/gems/neo4apis-0.8.2/lib/neo4apis/base.rb:35:in add_node': No UUID specified for labelAccountJournal(ArgumentError) from /home/aletz/.rvm/gems/ruby-2.2.0/gems/neo4apis-activerecord-0.9.1/lib/neo4apis/activerecord.rb:63:inadd_model_node'
from /home/aletz/.rvm/gems/ruby-2.2.0/gems/neo4apis-activerecord-0.9.1/lib/neo4apis/activerecord.rb:51:in add_model_relationship' from /home/aletz/.rvm/gems/ruby-2.2.0/gems/neo4apis-activerecord-0.9.1/lib/neo4apis/activerecord.rb:35:inblock (2 levels) in model_importer'
from /home/aletz/.rvm/gems/ruby-2.2.0/gems/neo4apis-activerecord-0.9.1/lib/neo4apis/activerecord.rb:30:in each' from /home/aletz/.rvm/gems/ruby-2.2.0/gems/neo4apis-activerecord-0.9.1/lib/neo4apis/activerecord.rb:30:inblock in model_importer'
Thanks

@cheerfulstoic
Copy link
Contributor

Ah, got it, I think it's because it's trying to load associations. In this case the PosJournal model (I think) has an association to the AccountJournal.

Is account_journal a many-to-many table, maybe? Does it have a primary key?

@alexander-arce
Copy link
Author

Yes PosOrder has an association to the AccountJournal.
AccountJournal has a primary key.
I'm attaching files for model definition according to debug message.
pos_order.txt
account_bank_statement_line.txt
account_invoice.txt
account_journal.txt
account_move.txt
pos_order_line.txt
pos_order_line_commission.txt
pos_session.txt
product_pricelist.txt
res_company.txt
res_partner.txt
res_user.txt
sale_shop.txt
stock_picking.txt

Sql definition for AccountJournal:
account_journal.sql.txt

@alexander-arce
Copy link
Author

I attach images of relations for pos_order

Foreign keys
pos_order_foreign_keys
Dependencies
pos_order_dependencies

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

2 participants