← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 601914] Re: product key mismatch id v/s sku

 

*** This bug is a duplicate of bug 688225 ***
    https://bugs.launchpad.net/bugs/688225

This is a Magento API Issue because it sucks, not an erp bug.

** This bug has been marked a duplicate of bug 688225
   Importing products skip if catalog_product_entity = sku crisscross
 * You can subscribe to bug 688225 by following this link: https://bugs.launchpad.net/magentoerpconnect/+bug/688225/+subscribe

-- 
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/601914

Title:
  product key mismatch id v/s sku

Status in Magento Open ERP Connector:
  Confirmed

Bug description:
  If your product_id are by chance equal to a different product sku in
  Magento the first is not imported.

  the relevant code in magerp_core.py in def sync_products
   for each in list_prods:
                      each_product_info = attr_conn.call('catalog_product.info', [each['product_id']])
   
  magento api by default 'catalog_product.info' uses first sku to retrieve the product and only if it fails it uses id to retrieve the product.
  if you have product A which has id = 13 and another product B which has sku = 13 this query will return product B (by sku) and not product A as intended.

  Workaround : use at least one letter in sku to avoid an sku equal to
  an id