[6.1] importing products does something weird

Bug #1070484 reported by Caner Candan
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Prestashop OpenERP Connector
Confirmed
Undecided
Unassigned

Bug Description

I have tested two cases, the first one with an openerp database with the built-in test items loaded on and the second one without. With the first case the "import product" feature works very well but when I am doing the same thing with the second config, I get this error for each product that I am trying to import: IntegrityError: duplicate key value violates unique constraint "product_product_uniq_default_code"
DETAIL: Key (default_code)=() already exists

Thanks.
Caner

Revision history for this message
Alexis de Lattre (alexis-via) wrote :

I fully support this bug report ! We really should remove the unicity constraint on product_code (in module product_sequence, product_product.py line 32). I am also pushing for this ! But it requires important changes in the code of the module product_images. So, in the short term, the workaround is to put unique "reference" in PrestaShop for your products.

Changed in prestashoperpconnect:
status: New → Confirmed
summary: - importing products does something weird
+ [6.1] importing products does something weird
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.