← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 579649] Re: Error Installing Conector Magento - KeyError: 'exportable'

 

I can confirm this error.

Using the following:

OpenERP Server 6.0.1
lp:openobject-addons/extra-6.0 (revno: 5184)
lp:~openlabs-akretion-consortium/magentoerpconnect/openerp6-module-with-configurable-and-options (revno:391)


Environment Information : 
System : Linux-2.6.32-27-generic-x86_64-with-Ubuntu-10.04-lucid
OS Name : posix
Distributor ID:	Ubuntu
Description:	Ubuntu 10.04.1 LTS
Release:	10.04
Codename:	lucid
Operating System Release : 2.6.32-27-generic
Operating System Version : #49-Ubuntu SMP Thu Dec 2 00:51:09 UTC 2010
Operating System Architecture : 64bit
Operating System Locale : en_US.UTF8
Python Version : 2.6.5
OpenERP-Client Version : 6.0.1
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
  File "/home/openerp/openerp-server/magento/openerp-server-6.0.1/bin/netsvc.py", line 489, in dispatch
    result = ExportService.getService(service_name).dispatch(method, auth, params)
  File "/home/openerp/openerp-server/magento/openerp-server-6.0.1/bin/service/web_services.py", line 599, in dispatch
    res = fn(db, uid, *params)
  File "/home/openerp/openerp-server/magento/openerp-server-6.0.1/bin/osv/osv.py", line 122, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/openerp/openerp-server/magento/openerp-server-6.0.1/bin/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/openerp/openerp-server/magento/openerp-server-6.0.1/bin/osv/osv.py", line 167, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/openerp/openerp-server/magento/openerp-server-6.0.1/bin/addons/base/module/wizard/base_module_upgrade.py", line 98, in upgrade_module
    _db, pool = pooler.restart_pool(cr.dbname, update_module=True)
  File "/home/openerp/openerp-server/magento/openerp-server-6.0.1/bin/pooler.py", line 60, in restart_pool
    return get_db_and_pool(db_name, force_demo, status, update_module=update_module)
  File "/home/openerp/openerp-server/magento/openerp-server-6.0.1/bin/pooler.py", line 39, in get_db_and_pool
    addons.load_modules(db, force_demo, status, update_module)
  File "/home/openerp/openerp-server/magento/openerp-server-6.0.1/bin/addons/__init__.py", line 883, in load_modules
    processed_modules.extend(load_module_graph(cr, graph, status, report=report, skip_modules=processed_modules))
  File "/home/openerp/openerp-server/magento/openerp-server-6.0.1/bin/addons/__init__.py", line 748, in load_module_graph
    load_init_update_xml(cr, m, idref, mode, kind)
  File "/home/openerp/openerp-server/magento/openerp-server-6.0.1/bin/addons/__init__.py", line 641, in load_init_update_xml
    tools.convert_xml_import(cr, m, fp, idref, mode=mode, **kwargs)
  File "/home/openerp/openerp-server/magento/openerp-server-6.0.1/bin/tools/convert.py", line 975, in convert_xml_import
    obj.parse(doc.getroot())
  File "/home/openerp/openerp-server/magento/openerp-server-6.0.1/bin/tools/convert.py", line 865, in parse
    self._tags[rec.tag](self.cr, rec, n)
  File "/home/openerp/openerp-server/magento/openerp-server-6.0.1/bin/tools/convert.py", line 832, in _tag_record
    id = self.pool.get('ir.model.data')._update(cr, self.uid, rec_model, self.module, res, rec_id or False, not self.isnoupdate(data_node), noupdate=self.isnoupdate(data_node), mode=self.mode, context=rec_context )
  File "/home/openerp/openerp-server/magento/openerp-server-6.0.1/bin/addons/base/ir/ir_model.py", line 659, in _update
    model_obj.write(cr, uid, [res_id], values, context=context)
  File "/home/openerp/openerp-server/magento/openerp-server-6.0.1/bin/addons/magentoerpconnect/product.py", line 664, in write
    stat = super(product_product, self).write(cr, uid, ids, vals, context)
  File "/home/openerp/openerp-server/magento/openerp-server-6.0.1/bin/osv/orm.py", line 3407, in write
    if self._inherit_fields[val][0] == table:
KeyError: 'exportable'

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/579649

Title:
  Error Installing Conector Magento - KeyError: 'exportable'

Status in Magento Open ERP Connector:
  Confirmed

Bug description:
  I am installing Magento connector. I migrated my database from version
  5.0.4 to 5.0.10. When I go to install the magento connector gives me
  the following error (I also gave it above):

  Traceback (most recent call last):
    File "/usr/lib/python2.5/site-packages/openerp-server/netsvc.py", line 245, in dispatch
      result = LocalService(service_name)(method, *params)
    File "/usr/lib/python2.5/site-packages/openerp-server/netsvc.py", line 74, in __call__
      return getattr(self, method)(*params)
    File "/usr/lib/python2.5/site-packages/openerp-server/service/web_services.py", line 632, in execute
      return self._execute(db, uid, wiz_id, datas, action, context)
    File "/usr/lib/python2.5/site-packages/openerp-server/service/web_services.py", line 612, in _execute
      return wiz.execute(db, uid, self.wiz_datas[wiz_id], action, context)
    File "/usr/lib/python2.5/site-packages/openerp-server/wizard/__init__.py", line 178, in execute
      res = self.execute_cr(cr, uid, data, state, context)
    File "/usr/lib/python2.5/site-packages/openerp-server/wizard/__init__.py", line 73, in execute_cr
      action_res = action(self, cr, uid, data, context)
    File "/usr/lib/python2.5/site-packages/openerp-server/addons/base/module/wizard/wizard_module_upgrade.py", line 92, in _upgrade_module
      db, pool = pooler.restart_pool(cr.dbname, update_module=True)
    File "/usr/lib/python2.5/site-packages/openerp-server/pooler.py", line 62, in restart_pool
      return get_db_and_pool(db_name, force_demo, status, update_module=update_module)
    File "/usr/lib/python2.5/site-packages/openerp-server/pooler.py", line 40, in get_db_and_pool
      addons.load_modules(db, force_demo, status, update_module)
    File "/usr/lib/python2.5/site-packages/openerp-server/addons/__init__.py", line 740, in load_modules
      r = load_module_graph(cr, graph, status, report=report)
    File "/usr/lib/python2.5/site-packages/openerp-server/addons/__init__.py", line 631, in load_module_graph
      tools.convert_xml_import(cr, m, fp, idref, mode=mode, **kwargs)
    File "/usr/lib/python2.5/site-packages/openerp-server/tools/convert.py", line 874, in convert_xml_import
      obj.parse(doc.getroot())
    File "/usr/lib/python2.5/site-packages/openerp-server/tools/convert.py", line 771, in parse
      self._tags[rec.tag](self.cr, rec, n)
    File "/usr/lib/python2.5/site-packages/openerp-server/tools/convert.py", line 743, in _tag_record
      id = self.pool.get('ir.model.data')._update(cr, self.uid, rec_model, self.module, res, rec_id or False, not self.isnoupdate(data_node), noupdate=self.isnoupdate(data_node), mode=self.mode )
    File "/usr/lib/python2.5/site-packages/openerp-server/addons/base/ir/ir_model.py", line 488, in _update
      model_obj.write(cr, uid, [res_id], values, context=context)
    File "/usr/lib/python2.5/site-packages/openerp-server/addons/magentoerpconnect/product.py", line 642, in write
      stat = super(product_product, self).write(cr, uid, ids, vals, context)
    File "/usr/lib/python2.5/site-packages/openerp-server/osv/orm.py", line 2513, in write
      fobj = self._inherit_fields[field][2]
  KeyError: 'exportable'

  
  What could it be?
  Thanks!