← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 746351] Re: INFO:ext synchro:Updated in OpenERP res.partner.address from External Ref with external_id 0 and OpenERP id 2 successfully

 

There is some issues on Magento with sales_order.info which returns no id for addresses, maybe your magento returns 0 for customer_address_id so the mapping  in ir_model_data is created with an id 0 like 
name : 'res_partner_address/0' 
res_id: 2

If it is the case I think we should modify sale.py to something like :
    def get_mage_customer_address_id(self, address_data):
-        if address_data.get('customer_address_id', False):
+        if address_data.get('customer_address_id', False) and address_data['customer_address_id'] != '0':

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/746351

Title:
  INFO:ext synchro:Updated in OpenERP res.partner.address from External
  Ref with external_id 0 and OpenERP id 2 successfully

Status in Magento Open ERP Connector:
  New

Bug description:
  When I import order kind of orders tell this :

  INFO:ext synchro:Updated in OpenERP res.partner.address from External
  Ref with external_id 0 and OpenERP id 2 successfully

  The issue is that in some order mapped address_shipping and all
  address to id 2 instead of create new one so many order had the same
  adress update by next order who had this issue.

  I don't understand why this bug occure. Can someone had same issue ?



References