NoneType object has no attribute Search

Bug #915249 reported by Cindy Croxton
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Magento OpenERP Connector
Incomplete
Undecided
Unassigned

Bug Description

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'

Revision history for this message
Cindy Croxton (ja20s) wrote :

We are using OpenERP 6.0.3, Magento 1.5, GTX client on Windows is 6.0.3

Also, although many of the products are marked NOT for export to Magento, they are in the export list anyways, and the icon to remove them is greyed out.

Revision history for this message
Alexandre Fayolle - camptocamp (alexandre-fayolle-c2c) wrote :

which branch of the connector are you using?

are you still experiencing the issue?

Changed in magentoerpconnect:
status: New → Incomplete
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.