AttributeError: 'list' object has no attribute 'get'

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

Bug Description

I have to Magentos connected to the same ERP.

revno: 685 (stable-6.1)
openerp-server : revno -> 348

Every Magento have different Main webstore name, view etc.

IN the connector I have put different prefix for each store in sale orders.

I've sync a few orders without problems, but now I'm getting this error and I'm unable to sync orders.

Website: Login Successful
2013-05-09 08:53:47,975 8922 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 606, in _record_one_external_resource
    mapping, mapping_id = self._init_mapping(cr, uid, external_session.referential_id.id,
  File "/opt/openerp/server/openerp/addons/base_sale_multichannels/sale.py", line 590, in check_if_order_exist
    mapping=local_mapping,
  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'
2013-05-09 08:53:47,984 8922 INFO ? Dia Website: Calling Method:sales_order.done,Arguments:[u'100000018']

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.