None type object has no attribute search

Asked by Cindy Croxton on 2012-01-10

I read the earlier post, and the answers, and it seems that this issue was supposed to be resolved in a version of OpenERP 5. We are using OpenERP 6.0.3, and I receive the following error whenever I try to update all products, or update just the quantities.

Environment Information :
System : Windows-XP-5.1.2600-SP3
OS Name : nt
Operating System Release : XP
Operating System Version : 5.1.2600
Operating System Architecture : 32bit
Operating System Locale : en_US.cp1252
Python Version : 2.5.2
OpenERP-Client Version : 6.0.3
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
  File "/usr/local/lib/python2.6/site-packages/openerp-server/netsvc.py", line 489, in dispatch
    result = ExportService.getService(service_name).dispatch(method, auth, params)
  File "/usr/local/lib/python2.6/site-packages/openerp-server/service/web_services.py", line 599, in dispatch
    res = fn(db, uid, *params)
  File "/usr/local/lib/python2.6/site-packages/openerp-server/osv/osv.py", line 122, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/usr/local/lib/python2.6/site-packages/openerp-server/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/usr/local/lib/python2.6/site-packages/openerp-server/osv/osv.py", line 167, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/usr/local/lib/python2.6/site-packages/openerp-server/addons/base_sale_multichannels/sale.py", line 147, in export_catalog
    self.export_products(cr, uid, shop, context)
  File "/usr/local/lib/python2.6/site-packages/openerp-server/addons/base_sale_multichannels/sale.py", line 138, in export_products
    self.export_products_collection(cr, uid, shop, shop.exportable_product_ids, context)
  File "/usr/local/lib/python2.6/site-packages/openerp-server/addons/base_sale_multichannels/sale.py", line 135, 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], {}, context)
  File "/usr/local/lib/python2.6/site-packages/openerp-server/addons/magentoconnect/product.py", line 977, in ext_export
    temp_result = super(magerp_osv.magerp_osv, self).ext_export(cr, uid, [id], external_referential_ids, defaults, context_storeview)
  File "/usr/local/lib/python2.6/site-packages/openerp-server/addons/base_external_referentials/external_osv.py", line 285, in ext_export
    for record_data in self.read_w_order(cr, uid, ids, [], context):
  File "/usr/local/lib/python2.6/site-packages/openerp-server/addons/base_external_referentials/external_osv.py", line 32, in read_w_order
    res = self.read(cr, user, ids, fields_to_read, context, load)
  File "/usr/local/lib/python2.6/site-packages/openerp-server/osv/orm.py", line 2944, in read
    result = self._read_flat(cr, user, select, fields, context, load)
  File "/usr/local/lib/python2.6/site-packages/openerp-server/osv/orm.py", line 3064, in _read_flat
    res2 = self._columns[f].get(cr, self, ids, f, user, context=context, values=res)
  File "/usr/local/lib/python2.6/site-packages/openerp-server/osv/fields.py", line 481, in get
    ids2 = obj.pool.get(self._obj).search(cr, user, self._domain + [(self._fields_id, 'in', ids)], limit=self._limit, context=context)
AttributeError: 'NoneType' object has no attribute 'search'

The capability to fully integrate OpenERP with Magento is vital to our operations. Does anyone have a solution?

Magento is version 1.5.

Thank you,

Cindy

Question information

Cindy Croxton (ja20s) said : #1

Additional problem is that products marked NOT for inclusion to export to Magento are still in the export list.

Can you help with this problem?

Provide an answer of your own, or ask Cindy Croxton for more information if necessary.

To post a message you must log in.