c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #13460
[Bug 650956] Re: Bug on tree view
(Oups, wrong bug report, sorry...)
--
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/650956
Title:
Bug on tree view
Status in OpenERP Web Client:
Invalid
Bug description:
Hello,
I noticed an anomaly on the tree view web client. My need is to select an item in a tree view, then call a wizard on this item. The id of this element is transmitted in the context. So why I use the report menu to set my wizard, because in action menu we can not define a wizard on a selected item in a tree view. The problem is that I have always an error when I call the wizard. The anomaly appears only at first click. We must close the error window and then call the wizard again for it to work.
The bug is not noticed on the gtk client.
the error is:
Traceback (most recent call last):
File "/home/sarac/workspace/ertus/trunk_copie/server/bin/netsvc.py", line 245, in dispatch
result = LocalService(service_name)(method, *params)
File "/home/sarac/workspace/ertus/trunk_copie/server/bin/netsvc.py", line 74, in __call__
return getattr(self, method)(*params)
File "/home/sarac/workspace/ertus/trunk_copie/server/bin/service/web_services.py", line 576, in execute
res = service.execute(db, uid, object, method, *args)
File "/home/sarac/workspace/ertus/trunk_copie/server/bin/osv/osv.py", line 58, in wrapper
return f(self, dbname, *args, **kwargs)
File "/home/sarac/workspace/ertus/trunk_copie/server/bin/osv/osv.py", line 119, in execute
res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/sarac/workspace/ertus/trunk_copie/server/bin/osv/osv.py", line 111, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/sarac/workspace/ertus/trunk_copie/addons/project_timesheet/project_timesheet.py", line 172, in name_get
name = "[%s] %s" % (project.category_id and project.category_id.code or '?', project.name)
File "/home/sarac/workspace/ertus/trunk_copie/server/bin/osv/orm.py", line 240, in __getattr__
return self[name]
File "/home/sarac/workspace/ertus/trunk_copie/server/bin/osv/orm.py", line 236, in __getitem__
return self._data[self._id][name]
KeyError: 'category_id'
Thanking you in advance.
Sincerely
Samir RACHEDI
OpenERP Consultant
www.smile.fr