It has been fixed so I close the bug.

** Changed in: magentoerpconnect
       Status: New => Fix Released

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

Title:
  product.product export inventory returns None

Status in Magento OpenERP Connector:
  Fix Released

Bug description:
  Hi,

  the export_inventory method of the product.product object returns None
  and we got an error at the end of the stock levels export.

  [2011-02-24 11:00:09,120][openerp_integration] INFO:ext synchro:Successfully 
updated stock level at -1.0 for product with SKU 2011/05692
  [2011-02-24 11:00:09,130][openerp_integration] WARNING:web-services:The 
method export_inventory of the object sale.shop can not return `None` !

  The error is on the sale.shop because the export_inventory method of the 
sale.shop use returns the return of the above method :
              res = self.pool.get('product.product').export_inventory(cr, uid, 
product_ids, '', context)
              shop.write({'last_inventory_export_date': time.strftime('%Y-%m-%d 
%H:%M:%S')})
          return res

  Here is a patch, I just added a "return True" on the export_inventory
  method.

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

_______________________________________________
Mailing list: https://launchpad.net/~c2c-oerpscenario
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~c2c-oerpscenario
More help   : https://help.launchpad.net/ListHelp

Reply via email to