INFO:ext synchro:Updated in OpenERP res.partner.address from External Ref with external_id 0 and OpenERP id 2 successfully
Bug #746351 reported by
Guilleret Florian
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Magento OpenERP Connector |
Confirmed
|
Undecided
|
Unassigned |
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 ?
To post a comment you must log in.
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 address/ 0'
name : 'res_partner_
res_id: 2
If it is the case I think we should modify sale.py to something like : customer_ address_ id(self, address_data): data.get( 'customer_ address_ id', False): data.get( 'customer_ address_ id', False) and address_ data['customer_ address_ id'] != '0':
def get_mage_
- if address_
+ if address_