Problem exporting products to Magento

Asked by Salvador Sierra

Hi,

I am able to import products from Magento to OpenERP, but I have problems when I try to export my products in OpenERP to magento. I get the following error in OpenERP:

Environment Information :
System : Windows-Vista-6.1.7600
OS Name : nt
Operating System Release : Vista
Operating System Version : 6.1.7600
Operating System Architecture : 32bit
Operating System Locale : en_GB.cp1252
Python Version : 2.5.2
OpenERP-Client Version : 5.0.6
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/openerp-server/netsvc.py", line 244, in dispatch
    result = LocalService(service_name)(method, *params)
  File "/usr/lib/python2.5/site-packages/openerp-server/netsvc.py", line 73, in __call__
    return getattr(self, method)(*params)
  File "/usr/lib/python2.5/site-packages/openerp-server/service/web_services.py", line 583, in execute
    res = service.execute(db, uid, object, method, *args)
  File "/usr/lib/python2.5/site-packages/openerp-server/osv/osv.py", line 61, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/usr/lib/python2.5/site-packages/openerp-server/osv/osv.py", line 120, in execute
    res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/usr/lib/python2.5/site-packages/openerp-server/osv/osv.py", line 112, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/usr/lib/python2.5/site-packages/openerp-server/addons/base_sale_multichannels/sale.py", line 151, in export_catalog
    self.export_products(cr, uid, shop, ctx)
  File "/usr/lib/python2.5/site-packages/openerp-server/addons/base_sale_multichannels/sale.py", line 144, in export_products
    self.export_products_collection(cr, uid, shop, shop.exportable_product_ids, ctx)
  File "/usr/lib/python2.5/site-packages/openerp-server/addons/base_sale_multichannels/sale.py", line 141, in export_products_collection
    self.pool.get('product.product').ext_export(cr, uid, [product.id for product in shop.exportable_product_ids] ,[shop.referential_id.id], {}, ctx)
  File "/usr/lib/python2.5/site-packages/openerp-server/addons/magentoerpconnect/product.py", line 699, in ext_export
    return super(magerp_osv.magerp_osv, self).ext_export(cr, uid, ids, external_referential_ids, defaults, context)
  File "/usr/lib/python2.5/site-packages/openerp-server/addons/base_external_referentials/external_osv.py", line 248, in ext_export
    exp_data = self.extdata_from_oevals(cr, uid, ext_ref_id, record_data, mapping_lines, defaults, context)
  File "/usr/lib/python2.5/site-packages/openerp-server/addons/magentoerpconnect/product.py", line 653, in extdata_from_oevals
    product_data.update({'price': self.pool.get('product.pricelist').price_get(cr, uid, pl_default_id, product.id, 1.0)[pl_default_id[0]]})
  File "/usr/lib/python2.5/site-packages/openerp-server/addons/product/pricelist.py", line 149, in price_get
    for id in ids:
TypeError: 'int' object is not iterable

I do not know if this is a bug or if I have another problem. I checked my price list definition and I can't find any problem.

Many thanks

Question information

Language:
English Edit question
Status:
Solved
For:
Magento OpenERP Connector Edit question
Assignee:
No assignee Edit question
Solved by:
Salvador Sierra
Solved:
Last query:
Last reply:
Revision history for this message
Salvador Sierra (salvador-sierra) said :
#1