product key mismatch id v/s sku

Bug #601914 reported by Piotr Buszka
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Magento OpenERP Connector
Confirmed
Wishlist
Unassigned

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

Changed in magentoerpconnect:
importance: Undecided → Wishlist
status: New → Confirmed
Revision history for this message
Kyle Waid (midwest) wrote :

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

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.