← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 891271] Re: update and create function broken on magento 1.6.1

 

To be more clear on my previous comment.

I confirm that method with "ol_catalog"  works great. But the originals API functions create and update are broken.
if i disable the connector, all back normal. I could use the default api method create and update.

Hope it will help to improve.

Regards,

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

Title:
  update and create function broken on magento 1.6.1

Status in Magento OpenERP Connector:
  New

Bug description:
  Hello,

  I install magento 1.6.1 and the latest version of the connector.
  Note : i setup a dedicated magento with only the connector as extension to be sure.

  When installed, it break the magento API due some broken part into the
  extended API in creation and update of products.

  Some part of my debug:

  In creation mode, some part of product are available (sku, stock, website_id) but nothing in description, status, weight,...
  So the product is not visible into the backend of magento.

  I think there is  a problem with this part into
  Ol_Catalog/Products.php where attributes are  not processed.

  
  foreach ($product->getTypeInstance(true)->getEditableAttributes($product) as $attribute) {
              if ($this->_isAllowedAttribute($attribute)
                  && isset($productData[$attribute->getAttributeCode()])) {
                  $product->setData(
                      $attribute->getAttributeCode(),
                      $productData[$attribute->getAttributeCode()]
                  );
              }
          }

  This part where attribute name is declare is processed :
  if (isset($productData['website_ids']) && is_array($productData['website_ids'])) {
              $product->setWebsiteIds($productData['website_ids']);
          }

  
  In update mode get same problem with the foreach.

  Thanks for your help to solve this.

  Regards,

  Thierry

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


References