Error during a Guest Checkout

Bug #1193239 reported by Distexhe Olivier
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenERP Connector - Magento
Fix Released
Medium
Guewen Baconnier @ Camptocamp

Bug Description

Reproduction of the error:
- Create a purchase in Magento without account (Checkout as Guest)
- Import sales orders from all store views in OpenERP

Log:
Task: openerp.addons.magentoerpconnect.unit.import_synchronizer.import_record('magento.sale.order', 1, '100000008')

Traceback (most recent call last):
  File "/opt/local/openerp/addons-community/connector/queue/worker.py", line 121, in run_job
    job.perform(session)
  File "/opt/local/openerp/addons-community/connector/queue/job.py", line 460, in perform
    self.result = self.func(session, *self.args, **self.kwargs)
  File "/opt/local/openerp/addons-community/magentoerpconnect/unit/import_synchronizer.py", line 311, in import_record
    importer.run(magento_id, force=force)
  File "/opt/local/openerp/addons-community/magentoerpconnect/unit/import_synchronizer.py", line 157, in run
    self._map_data()
  File "/opt/local/openerp/addons-community/magentoerpconnect/unit/import_synchronizer.py", line 97, in _map_data
    self.mapper.convert(self.magento_record)
  File "/opt/local/openerp/addons-community/connector/unit/mapper.py", line 221, in convert
    self._convert(record, fields=fields)
  File "/opt/local/openerp/addons-community/connector/unit/mapper.py", line 177, in _convert
    values = meth(record)
  File "/opt/local/openerp/addons-community/magentoerpconnect/sale.py", line 617, in customer_id
    "SaleOrderImport._import_dependencies" % record['customer_id'])
AssertionError: customer_id None should have been imported in SaleOrderImport._import_dependencies

Changed in openerp-connector:
status: New → Confirmed
Changed in openerp-connector:
status: Confirmed → In Progress
assignee: nobody → Guewen Baconnier @ Camptocamp (gbaconnier-c2c)
importance: Undecided → Medium
Changed in openerp-connector:
status: In Progress → Fix Committed
Changed in openerp-connector:
status: Fix Committed → Fix Released
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.