← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 683616] [NEW] Import Customers to Partners without address info

 

Public bug reported:

[2010-12-01 13:13:00,426] ERROR:web-services:[23]:   File "/home/resteve/openerp-server/bin/addons/magentoerpconnect/magerp_core.py", line 179, in sync_partner
[2010-12-01 13:13:00,426] ERROR:web-services:[24]:     customer_address_info = each_customer_address_info[0]
[2010-12-01 13:13:00,427] ERROR:web-services:[25]: IndexError: list index out of range

If you have some customers without address, sync_partner function not
validated if exists this value => get first position:
each_customer_address_info[0]

==code==
if len(each_customer_address_info):

if result_address:

** Affects: magentoerpconnect
     Importance: Undecided
     Assignee: Raimon Esteve (Zikzakmedia) (resteve)
         Status: New

** Changed in: magentoerpconnect
     Assignee: (unassigned) => Raimon Esteve (Zikzakmedia) (resteve)

-- 
Import Customers to Partners without address info
https://bugs.launchpad.net/bugs/683616
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.

Status in Magento Open ERP Connector: New

Bug description:
[2010-12-01 13:13:00,426] ERROR:web-services:[23]:   File "/home/resteve/openerp-server/bin/addons/magentoerpconnect/magerp_core.py", line 179, in sync_partner
[2010-12-01 13:13:00,426] ERROR:web-services:[24]:     customer_address_info = each_customer_address_info[0]
[2010-12-01 13:13:00,427] ERROR:web-services:[25]: IndexError: list index out of range

If you have some customers without address, sync_partner function not validated if exists this value => get first position: each_customer_address_info[0]

==code==
if len(each_customer_address_info):

if result_address:





Follow ups

References