magentoerpconnect_pricing: uninstall of the module will prevent import of products until next restart

Bug #1187697 reported by Guewen Baconnier @ Camptocamp
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenERP Connector - Magento
Fix Released
Low
Guewen Baconnier @ Camptocamp

Bug Description

When uninstalling the magentoerpconnect_pricing addons, the next import of products will fail with an error:

  File "/home/gbaconnier/code/dev_instances/openerp_magento7/parts/connector/connector/queue/worker.py", line 121, in run_job
    job.perform(session)
  File "/home/gbaconnier/code/dev_instances/openerp_magento7/parts/connector/connector/queue/job.py", line 460, in perform
    self.result = self.func(session, *self.args, **self.kwargs)
  File "/home/gbaconnier/code/dev_instances/openerp_magento7/parts/magentoerpconnect/magentoerpconnect/unit/import_synchronizer.py", line 309, in import_record
    importer.run(magento_id, force=force)
  File "/home/gbaconnier/code/dev_instances/openerp_magento7/parts/magentoerpconnect/magentoerpconnect/unit/import_synchronizer.py", line 155, in run
    self._map_data()
  File "/home/gbaconnier/code/dev_instances/openerp_magento7/parts/magentoerpconnect/magentoerpconnect/unit/import_synchronizer.py", line 95, in _map_data
    self.mapper.convert(self.magento_record)
  File "/home/gbaconnier/code/dev_instances/openerp_magento7/parts/connector/connector/unit/synchronizer.py", line 115, in mapper
    self._mapper = self.environment.get_connector_unit(ImportMapper)
  File "/home/gbaconnier/code/dev_instances/openerp_magento7/parts/connector/connector/connector.py", line 183, in get_connector_unit
    self.model_name)(self)
  File "/home/gbaconnier/code/dev_instances/openerp_magento7/parts/connector/connector/backend.py", line 152, in get_class
    (base_class, session, model_name))
AssertionError: No matching class found for <class 'openerp.addons.connector.unit.mapper.ImportMapper'> with session: <Session db_name: openerp_magento7, uid: 1>, model name: magento.pr
oduct.product

This module replaces the main ProductImportMapper by first unregistering it then registering itself.

When the module is uninstalled, the main ProductImportMapper is no longer registered so can no longer be used.

Restart of the server after the uninstall will resolve the situation.

Changed in openerp-connector:
status: New → Confirmed
importance: Undecided → Low
Revision history for this message
Guewen Baconnier @ Camptocamp (gbaconnier-c2c) wrote :
Changed in openerp-connector:
status: Confirmed → Fix Committed
assignee: nobody → Guewen Baconnier @ Camptocamp (gbaconnier-c2c)
Changed in openerp-connector:
status: Fix Committed → Fix Released
Revision history for this message
Guewen Baconnier @ Camptocamp (gbaconnier-c2c) wrote :
information type: Embargoed → Public
affects: openerp-connector → openerp-connector-magento
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.