c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #17402
[Bug 724243] [NEW] product.product export inventory returns None
Public bug reported:
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.
** Affects: magentoerpconnect
Importance: Undecided
Status: New
--
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 Open ERP 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.
Follow ups
References