← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 747776] Re: [602] error opening crm categories

 

adding debug output to name_get of crm_case_section()
/6.0/crm/crm.py

        reads = self.read(cr, uid, ids, ['name', 'parent_id'], context)
        import sys
        print >> sys.stderr, 'crm reads', reads
        for record in reads:
            print >> sys.stderr, 'crm record', record
            name = record['name']
            print >> sys.stderr, 'crm name', name
            if record['parent_id']:

crm reads {'parent_id': False, 'name': u'Sales Department', 'id': 1}
crm record parent_id
[2011-04-07 09:19:35,300][test602] ERROR:web-services:Uncaught exception
Traceback (most recent call last):
  File "/home/terp/OpenERP/trunk/openobject-server/6.0/bin/osv/osv.py", line 122, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/terp/OpenERP/trunk/openobject-server/6.0/bin/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/terp/OpenERP/trunk/openobject-server/6.0/bin/osv/osv.py", line 167, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/terp/OpenERP/trunk/openobject-addons/6.0/crm/crm.py", line 671, in name_get
    name = record['name']
TypeError: string indices must be integers, not str

** Changed in: openobject-addons
       Status: Incomplete => 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/747776

Title:
  [602] error opening crm categories

Status in OpenERP Modules (addons):
  New

Bug description:
  tying to open crm categories
  (had to deaktivate name_get to proceed)

  Environment Information : 
  System : Linux-2.6.37.1-1.2-desktop-x86_64-with-SuSE-11.4-x86_64
  OS Name : posix
  LSB Version:	core-2.0-noarch:core-3.2-noarch:core-4.0-noarch:core-2.0-x86_64:core-3.2-x86_64:core-4.0-x86_64:desktop-4.0-amd64:desktop-4.0-noarch:graphics-2.0-amd64:graphics-2.0-noarch:graphics-3.2-amd64:graphics-3.2-noarch:graphics-4.0-amd64:graphics-4.0-noarch
  Distributor ID:	SUSE LINUX
  Description:	openSUSE 11.4 (x86_64)
  Release:	11.4
  Codename:	Celadon
  Operating System Release : 2.6.37.1-1.2-desktop
  Operating System Version : #1 SMP PREEMPT 2011-02-21 10:34:10 +0100
  Operating System Architecture : 64bit
  Operating System Locale : en_US.UTF8
  Python Version : 2.7.0
  OpenERP-Client Version : 6.0.1
  Last revision No. & ID :1805 nch@xxxxxxxxxxx-20110204062049-cinbbgay477geqem
  Traceback (most recent call last):
    File "/home/terp/OpenERP/trunk/openobject-server/6.0/bin/netsvc.py", line 489, in dispatch
      result = ExportService.getService(service_name).dispatch(method, auth, params)
    File "/home/terp/OpenERP/trunk/openobject-server/6.0/bin/service/web_services.py", line 599, in dispatch
      res = fn(db, uid, *params)
    File "/home/terp/OpenERP/trunk/openobject-server/6.0/bin/osv/osv.py", line 122, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/home/terp/OpenERP/trunk/openobject-server/6.0/bin/osv/osv.py", line 176, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/home/terp/OpenERP/trunk/openobject-server/6.0/bin/osv/osv.py", line 167, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/home/terp/OpenERP/trunk/openobject-addons/6.0/crm/crm.py", line 668, in name_get
      name = record['name']
  TypeError: string indices must be integers, not str



References