c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #21631
[Bug 747776] Re: [6.02] error opening crm categories
Hello DR Ferdinand,
The patch seems good but I am not able to produce the trace-back at my
end because for every time there is passed a list in read method so no
need to check this kind.
In reads passed list of dict like [{'parent_id': False, 'name': u'Sales Department', 'id': 1}]
So the record is dictionary like {'parent_id': False, 'name': u'Sales Department', 'id': 1} and in line number 677 of crm.py if there a parent in record then it will go a head.
That's why there is no need to check
if isinstance(reads, dict): this type which you have suggested in patch.
And again said this is not a bug If you still faced it then would you
please attached a video with whole steps and traceback.
Thanks in advance.
** Changed in: openobject-addons
Status: New => Incomplete
--
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:
[6.02] error opening crm categories
Status in OpenERP Modules (addons):
Incomplete
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