← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 724243] Re: product.product export inventory returns None

 

Please integrate patch or close bug

-- 
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:
  New

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


References