Attributes are not all imported to OpenErp on some Attribute sets

Bug #497216 reported by Nautica
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Magento OpenERP Connector
Confirmed
Undecided
Mayank Goel

Bug Description

I did a fresh install with revision 269 and an updated base_external_referentials and base_sale_multichannel. in my live Magento Shop i have 4 attribute sets. with their own attributes.
I dont know why but only for one attributes set the assigned attributes are imported. The other attribute sets are in OpenErp but without the assigned attributes. The Attribute Set that has the attributes has the highest ID.

Revision history for this message
Nicolas Bessi - Camptocamp (nbessi-c2c-deactivatedaccount) wrote :

Import attributes only import attributes of the first attribute set.

If you look this page on the Magento API :
http://www.magentocommerce.com/wiki/doc/webservices-api/api/catalog_product_attribute#catalog_product_attribute.list
The list function of the catalog_product_attribute take an int as parameter, as the OpenERP connector send an array of multiple ids, only the first id is taken in account.

The following branch should fix the problem.

lp:~c2c/magentoerpconnect/magentoerpconnect_generic_bug_497216

Regards

Nicolas

Changed in magentoerpconnect:
status: New → Fix Released
Revision history for this message
Sharoon Thomas http://openlabs.co.in (sharoonthomas) wrote :

Can you confirm this bug with the said revisions of code??

Changed in magentoerpconnect:
assignee: nobody → Mayank Goel (mayank)
status: Fix Released → Confirmed
Revision history for this message
Nicolas Bessi - Camptocamp (nbessi-c2c-deactivatedaccount) wrote :

Hello,

I have encountered the bug today, I have created custom attribute color (In magento). Then I followed all the Magento steps (Reload, Synchronize, import). When I imported the attributes,
the attribute colors I have created was not imported. When I attributed it in the first attribute set also, the attribute, was imported.

I have Trace the code in the PHP Magento connector. In Attribute.php.

public function items($setId) {
  Mage::log($setId);

In fact, the function was only called once, with the first id of the attribute set.

In OpenERP trace was
Calling Method:ol_catalog_product_attribute.list,Arguments:[4,12,27,35,95,33]

But only a were logged in Magento in $setId.

I'm using version 1.3.1 of the PHP connector. Maybe thats the cause, but I'did not know where to find the latest release outside of Magento Connect. I'm also using revision 295 of the connector

Regrads

Nicolas

Revision history for this message
Sébastien BEAU - http://www.akretion.com (sebastien.beau) wrote :

Which version of the connector do you use?
Do you still have the bug?
Best regards

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.