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

Import res.partner.category #48

Closed
kossovo opened this issue Oct 13, 2014 · 3 comments
Closed

Import res.partner.category #48

kossovo opened this issue Oct 13, 2014 · 3 comments

Comments

@kossovo
Copy link

kossovo commented Oct 13, 2014

Tested on Odoo 7.0 and Magento 1.7.0.0 (with SAMPLE_DATA)

Synchronization works well, the import of res.partner.category works, except for categories with a compound name (eg "TEST GROUP")
I get the following traceback:

Traceback (most recent call last):
  File "/home/clovis/Documents/test/connector/connector/queue/worker.py", line 122, in run_job
    job.perform(session)
  File "/home/clovis/Documents/test/connector/connector/queue/job.py", line 491, in perform
    self.result = self.func(session, *self.args, **self.kwargs)
  File "/home/clovis/Documents/test/connector-magento/magentoerpconnect/unit/import_synchronizer.py", line 378, in import_record
    importer.run(magento_id, force=force)
  File "/home/clovis/Documents/test/connector-magento/magentoerpconnect/unit/import_synchronizer.py", line 232, in run
    self.binder.bind(self.magento_id, binding_id)
  File "/home/clovis/Documents/test/connector-magento/magentoerpconnect/unit/binder.py", line 125, in bind
    "got: %s, %s" % (external_id, binding_id)
AssertionError: external_id or binding_id missing, got: 0, 17
@dfrankland
Copy link

I am also running into this issue with OpenERP 7.0 and Magento ver. 1.8.1.0 and I get this traceback:

Traceback (most recent call last):
  File "/opt/openerp/addons/connector/connector/queue/worker.py", line 122, in run_job
    job.perform(session)
  File "/opt/openerp/addons/connector/connector/queue/job.py", line 491, in perform
    self.result = self.func(session, *self.args, **self.kwargs)
  File "/opt/openerp/addons/connector-magento/magentoerpconnect/unit/import_synchronizer.py", line 378, in import_record
    importer.run(magento_id, force=force)
  File "/opt/openerp/addons/connector-magento/magentoerpconnect/unit/import_synchronizer.py", line 232, in run
    self.binder.bind(self.magento_id, binding_id)
  File "/opt/openerp/addons/connector-magento/magentoerpconnect/unit/binder.py", line 125, in bind
    "got: %s, %s" % (external_id, binding_id)
AssertionError: external_id or binding_id missing, got: 0, 6

guewen added a commit to guewen/connector-magento that referenced this issue Oct 31, 2014
This is the main reason why the external_id is stored as str, so
do not block the creation of a binding if the Magento ID is 0.

Fixes OCA#48
@guewen
Copy link
Member

guewen commented Oct 31, 2014

Hi,

Thanks for your reports.
I think I found a correction, could you test it and give your feedback on the pull request please? #61

@dfrankland
Copy link

I have pulled the changes, restarted the server, requeued all the jobs, and everything completed; works great!

Thanks again @guewen!

@guewen guewen closed this as completed Jan 7, 2015
jcoux pushed a commit to camptocamp/connector-magento that referenced this issue May 14, 2019
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

3 participants