openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #00360
[Bug 878432] Re: [trunk] Hr_applicant : On Webclient, the field Appreciation(priority) when chosen, any button click will throw a traceback
Hello Vishal,
I wish to reproduce the error, but I get a different error this time.(I
made sure the code is fully updated and I am working on a new DB)
Client Traceback (most recent call last):
File "/usr/lib/python2.7/xmlrpclib.py", line 1224, in __call__
return self.__send(self.__name, args)
File "/usr/lib/python2.7/xmlrpclib.py", line 1575, in __request
verbose=self.__verbose
File "/usr/lib/python2.7/xmlrpclib.py", line 1264, in request
return self.single_request(host, handler, request_body, verbose)
File "/usr/lib/python2.7/xmlrpclib.py", line 1297, in single_request
return self.parse_response(response)
File "/usr/lib/python2.7/xmlrpclib.py", line 1473, in parse_response
return u.close()
File "/usr/lib/python2.7/xmlrpclib.py", line 793, in close
raise Fault(**self._stack[0])
Server Traceback (most recent call last):
File "/home/serpent/workspace/trunk/server/openerp/wsgi.py", line 77, in xmlrpc_return
result = openerp.netsvc.dispatch_rpc(service, method, params)
File "/home/serpent/workspace/trunk/server/openerp/netsvc.py", line 325, in dispatch_rpc
result = ExportService.getService(service_name).dispatch(method, params)
File "/home/serpent/workspace/trunk/server/openerp/service/web_services.py", line 580, in dispatch
res = fn(db, uid, *params)
File "/home/serpent/workspace/trunk/server/openerp/osv/osv.py", line 120, in wrapper
return f(self, dbname, *args, **kwargs)
File "/home/serpent/workspace/trunk/server/openerp/osv/osv.py", line 172, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/serpent/workspace/trunk/server/openerp/osv/osv.py", line 163, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/serpent/workspace/trunk/server/openerp/osv/orm.py", line 2100, in fields_view_get
cr, user, context)
File "/home/serpent/workspace/trunk/server/openerp/osv/orm.py", line 1877, in _get_default_search_view
tree_view = self.fields_view_get(cr, uid, False, 'tree', context=context)
File "/home/serpent/workspace/trunk/server/openerp/osv/orm.py", line 2100, in fields_view_get
cr, user, context)
File "/home/serpent/workspace/trunk/server/openerp/osv/orm.py", line 1811, in _get_default_tree_view
_rec_name = self._columns.keys()[0]
IndexError: list index out of range
This is a different error hiding the error I reported.
Thanks,
Serpent Consulting Services.
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Server.
https://bugs.launchpad.net/bugs/878432
Title:
[trunk] Hr_applicant : On Webclient,the field Appreciation(priority)
when chosen, any button click will throw a traceback
Status in OpenERP Addons (modules):
Incomplete
Status in OpenERP Web Client:
Incomplete
Status in OpenERP Server:
Incomplete
Bug description:
Select any applicant record, assign any value to the field
'Appreciation', press any button to traverse through next state.
There will be a traceback as follows:
Traceback (most recent call last):
File "/home/salmaan/workspace/trunk/server/openerp/service/netrpc_server.py", line 62, in run
result = netsvc.dispatch_rpc(msg[0], msg[1], msg[2:])
File "/home/salmaan/workspace/trunk/server/openerp/netsvc.py", line 325, in dispatch_rpc
result = ExportService.getService(service_name).dispatch(method, params)
File "/home/salmaan/workspace/trunk/server/openerp/service/web_services.py", line 580, in dispatch
res = fn(db, uid, *params)
File "/home/salmaan/workspace/trunk/server/openerp/osv/osv.py", line 122, in wrapper
raise except_osv(inst.name, inst.value)
except_osv: (u'ValidateError', u'The value "4" for the field "hr_applicant.priority" is not in the selection')
There should either be a fix from
1. web to send char values to server for selection widget.
The FancyValidator/Schema should consider the type as well. Right now, it considers only the widget attribute.
OR
2. Server should always compare the string conversion of value, to selection list/tuple.
OR
3. The addon should be corrected in order to allocate only character
values to selection list, rather than '1','2',etc.
Note: GTK seems approaching right to the server.
Thanks,
Serpent Consulting Services.
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/878432/+subscriptions