Order import Error with no shipping_address in Magento

Bug #1179849 reported by David
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Magento OpenERP Connector
New
Undecided
Unassigned

Bug Description

I'm getting this error when the shipping_address isn't defined for example because there is a coupon etc:

2013-05-14 08:43:10,293 32091 ERROR ? Dia Website: 'list' object has no attribute 'get'
Traceback (most recent call last):
  File "/opt/openerp/server/openerp/addons/base_external_referentials/decorator.py", line 130, in wrapper
    response = func(self, import_cr, uid, external_session, resource, *args, **kwargs)
  File "/opt/openerp/server/openerp/addons/base_sale_multichannels/sale.py", line 609, in _record_one_external_resource
    order_mapping=mapping[mapping_id], defaults=defaults, context=context)
  File "/opt/openerp/server/openerp/addons/base_sale_multichannels/sale.py", line 593, in check_if_order_exist
    context=context)
  File "/opt/openerp/server/openerp/addons/base_external_referentials/decorator.py", line 49, in wrapped
    return func(self, cr, uid, argument, *args, **kwargs)
  File "/opt/openerp/server/openerp/addons/magentoerpconnect/sale.py", line 409, in _transform_one_resource
    resource = self.clean_magento_resource(cr, uid, resource, context=context)
  File "/opt/openerp/server/openerp/addons/magentoerpconnect/sale.py", line 595, in clean_magento_resource
    if not resource['shipping_address'].get('customer_id'):
AttributeError: 'list' object has no attribute 'get'

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.