← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 881123] Re: connector picking up addresses based on 'customer_address_id' is wrong

 

shipping_address_id': '3583702', 'customer_balance_refunded': None, 'shipping_address': {'address_id': '3583702', 'region_id': '34', 'telephone': '952-925-9854', 'prefix': '', 'street': '5825 Excelsior Blvd.', 'postcode': '55416', 'suffix': 'TJ', 'city': 'St. Louis Park', 'parent_id': '230909', 'country_id': 'US', 'gift_message_id': None, 'address_type': 'shipping', 'email': 'theoneandonlyla@xxxxxxxxx', 'quote_address_id': None, 'customer_address_id': '62517', 'fax': '', 'firstname': 'Events ', 'middlename': 'and', 'lastname': 'Sponsorship', 'company': 'Midwest Supplies', 'giftregistry_item_id': None, 'tax_id': None, 'customer_id': '40965', 'region': 'Minnesota'}, 'ext_order_id': None, 'shipping_canceled': None, 'payment_authorization_expiration': None, 'total_offline_refunded': None, 'gw_printed_card_tax_amount': '0.0000', 'store_id': '1', 'base_gift_cards_invoiced': None, 'updated_at': '2011-10-24 20:20:04', 'gw_items_tax_amount': '0.0000', 'base_discount_invoiced': '0.0000', 'real_order_id': None, 'gw_items_price': '0.0000', 'global_currency_code': 'USD', 'x_forwarded_for': None, 'base_total_qty_ordered': None, 'base_shipping_tax_refunded': None, 'base_shipping_discount_amount': '0.0000', 'increment_id': '1235816', 'store_currency_code': 'USD', 'gw_price_invoiced': None, 'shipping_incl_tax': '0.0000', 'gw_price_refunded': None, 'base_grand_total': '0.0000', 'giftcert_amount_invoiced': None, 'customer_balance_amount': '0.0000', 'gw_items_price_invoiced': None, 'customer_dob': None, 'billing_address_id': '3583701', 'remote_ip': None, 'status': 'processing', 'is_multi_payment': None, 'customer_note': 'Test order ', 'reward_currency_amount_refunded': None, 'discount_description': '', 'gift_cards_refunded': None, 'base_reward_currency_amount_invoiced': None, 'gw_items_base_price': '0.0000', 'discount_refunded': None, 'is_hold': None, 'tracking_numbers': None, 'currency_rate': None, 'base_to_order_rate': '1.0000', 'subtotal': '0.0000', 'payment': {'cc_ss_issue': None, 'protection_eligibility': None, 'cc_raw_response': None, 'flo2cash_account_id': None, 'base_amount_paid_online': '0.0000', 'cc_cid_status': None, 'cc_exp_year': '0', 'echeck_account_type': None, 'additional_information': [], 'cc_debug_response_serialized': None, 'base_amount_authorized': '0.0000', 'base_amount_ordered': '0.0000', 'ideal_issuer_id': None, 'base_shipping_refunded': None, 'ideal_transaction_checked': None, 'shipping_captured': '0.0000', 'shipping_refunded': None, 'cc_ss_start_year': '0', 'cc_ss_start_month': '0', 'customer_payment_id': None, 'base_shipping_captured': '0.0000', 'echeck_account_name': None, 'cc_debug_request_body': None, 'amount': None, 'shipping_amount': '0.0000', 'amount_ordered': '0.0000', 'quote_payment_id': None, 'cc_approval': None, 'parent_id': '230909', 'echeck_routing_number': None, 'base_amount_paid': '0.0000', 'method': 'free', 'echeck_type': None, 'amount_refunded': None, 'base_shipping_amount': '0.0000', 'amount_paid': '0.0000', 'cc_type': '', 'cc_last4': '', 'last_trans_id': None, 'cc_trans_id': None, 'amount_authorized': '0.0000', 'base_amount_canceled': None, 'cc_status': None, 'payment_id': '3548056', 'cc_raw_request': None, 'anet_trans_method': None, 'address_status': None, 'cc_status_description': None, 'echeck_bank_name': None, 'base_amount_refunded_online': None, 'po_number': '', 'ideal_issuer_title': None, 'amount_canceled': None, 'paybox_question_number': None, 'account_status': None, 'cc_exp_month': '0', 'cc_number_enc': '', 'base_amount_refunded': None, 'cc_avs_status': None, 'cc_owner': '', 'cybersource_token': None, 'paybox_request_number': None, 'additional_data': None, 'cc_secure_verify': None, 'cc_debug_response_body': None}, 'store_to_order_rate': '1.0000', 'reward_salesrule_points': None, 'ext_customer_id': None, 'created_at': '2011-10-24 20:20:04', 'gw_add_printed_card': '0', 'coupon_code': None, 'can_ship_partially': None, 'base_adjustment_positive': None, 'customer_prefix': '', 'subtotal_refunded': None}
[2011-10-24 15:15:32,666][midwestsupplies] INFO:ext synchro:Updated in OpenERP res.partner.address from External Ref with external_id 62517 and OpenERP id 136970 successfully
[2011-10-24 15:15:32,686][midwestsupplies] INFO:ext synchro:Updated in OpenERP res.partner.address from External Ref with external_id 62517 and OpenERP id 136970 successfully
[2011-10-24 15:15:36,355][midwestsupplies] INFO:ext synchro:Created in OpenERP sale.order from External Ref with external_id 1235816 and OpenERP id 163228 successfully

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

Title:
  connector picking up addresses based on 'customer_address_id' is wrong

Status in Magento OpenERP Connector:
  New

Bug description:
  When importing sales orders it collects the customers shipping/billing
  address based on 'customer_address_id'. If the ID or referential is
  stored in ir_model_data it will retrieve this or update it as the
  shipping/billing info.

  This is bad practice. Magento most of the time returns correct datas
  in field customer_address_id, but it can and does return id = 0 or
  even wrong customer addresses! In any production environment,
  customers are impacted. API sends wrong data.

  You have it mapped to take shipping _address or billing_address, but
  these are not fields passed in the api. They are passed

  billing_address_id, and shipping_address_id NOT billing_address,
  shipping_address. This causes matching to always fail and default back
  to customer_address_id which is wrong.

To manage notifications about this bug go to:
https://bugs.launchpad.net/magentoerpconnect/+bug/881123/+subscriptions


References