openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #12973
[Bug 1017483] [NEW] Audittrail not write to the log
Public bug reported:
Hi.
I use openerp-6.1-1 by 22-Feb-2012.
1) Install 'audittrail' module.
2) Add rule what must logging all actions with 'project.task' model.
3) When open Project -> Project -> Tasks, this causes the following error:
Client Traceback (most recent call last):
File "/home/ivan/projects/python/openerp/openerp-6.1-1/openerp/addons/web/common/http.py", line 180, in dispatch
response["result"] = method(controller, self, **self.params)
File "/home/ivan/projects/python/openerp/openerp-6.1-1/openerp/addons/web/controllers/main.py", line 1034, in read
dict(context, group_by=group_by_fields), sort or False)
File "/home/ivan/projects/python/openerp/openerp-6.1-1/openerp/addons/web/common/openerplib/main.py", line 250, in proxy
args, kw)
File "/home/ivan/projects/python/openerp/openerp-6.1-1/openerp/addons/web/common/openerplib/main.py", line 117, in proxy
result = self.connector.send(self.service_name, method, *args)
File "/home/ivan/projects/python/openerp/openerp-6.1-1/openerp/addons/web/common/http.py", line 611, in send
raise fault
Server Traceback (most recent call last):
File "/home/ivan/projects/python/openerp/openerp-6.1-1/openerp/addons/web/common/http.py", line 592, in send
result = openerp.netsvc.dispatch_rpc(service_name, method, args)
File "/home/ivan/projects/python/openerp/openerp-6.1-1/openerp/netsvc.py", line 360, in dispatch_rpc
result = ExportService.getService(service_name).dispatch(method, params)
File "/home/ivan/projects/python/openerp/openerp-6.1-1/openerp/service/web_services.py", line 572, in dispatch
res = fn(db, uid, *params)
File "/home/ivan/projects/python/openerp/openerp-6.1-1/openerp/osv/osv.py", line 167, in execute_kw
return self.execute(db, uid, obj, method, *args, **kw or {})
File "/home/ivan/projects/python/openerp/openerp-6.1-1/openerp/osv/osv.py", line 121, in wrapper
return f(self, dbname, *args, **kwargs)
File "/home/ivan/projects/python/openerp/openerp-6.1-1/openerp/osv/osv.py", line 176, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/ivan/projects/python/openerp/openerp-6.1-1/openerp/addons/audittrail/audittrail.py", line 494, in execute_cr
return self.log_fct(cr, uid, model, method, fct_src, *args)
File "/home/ivan/projects/python/openerp/openerp-6.1-1/openerp/addons/audittrail/audittrail.py", line 291, in log_fct
old_values = self.get_data(cr, uid_orig, pool, res_ids, model, method)
File "/home/ivan/projects/python/openerp/openerp-6.1-1/openerp/addons/audittrail/audittrail.py", line 325, in get_data
for resource in resource_pool.read(cr, 1, res_ids):
File "/home/ivan/projects/python/openerp/openerp-6.1-1/openerp/osv/orm.py", line 3381, in read
result = self._read_flat(cr, user, select, fields, context, load)
File "/home/ivan/projects/python/openerp/openerp-6.1-1/openerp/osv/orm.py", line 3432, in _read_flat
for sub_ids in cr.split_for_in_conditions(ids):
File "/home/ivan/projects/python/openerp/openerp-6.1-1/openerp/sql_db.py", line 244, in split_for_in_conditions
return tools.misc.split_every(self.IN_MAX, set(ids))
TypeError: unhashable type: 'list'
There are any ideas?
Ivan.
** Affects: openobject-server
Importance: Undecided
Status: New
--
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/1017483
Title:
Audittrail not write to the log
Status in OpenERP Server:
New
Bug description:
Hi.
I use openerp-6.1-1 by 22-Feb-2012.
1) Install 'audittrail' module.
2) Add rule what must logging all actions with 'project.task' model.
3) When open Project -> Project -> Tasks, this causes the following error:
Client Traceback (most recent call last):
File "/home/ivan/projects/python/openerp/openerp-6.1-1/openerp/addons/web/common/http.py", line 180, in dispatch
response["result"] = method(controller, self, **self.params)
File "/home/ivan/projects/python/openerp/openerp-6.1-1/openerp/addons/web/controllers/main.py", line 1034, in read
dict(context, group_by=group_by_fields), sort or False)
File "/home/ivan/projects/python/openerp/openerp-6.1-1/openerp/addons/web/common/openerplib/main.py", line 250, in proxy
args, kw)
File "/home/ivan/projects/python/openerp/openerp-6.1-1/openerp/addons/web/common/openerplib/main.py", line 117, in proxy
result = self.connector.send(self.service_name, method, *args)
File "/home/ivan/projects/python/openerp/openerp-6.1-1/openerp/addons/web/common/http.py", line 611, in send
raise fault
Server Traceback (most recent call last):
File "/home/ivan/projects/python/openerp/openerp-6.1-1/openerp/addons/web/common/http.py", line 592, in send
result = openerp.netsvc.dispatch_rpc(service_name, method, args)
File "/home/ivan/projects/python/openerp/openerp-6.1-1/openerp/netsvc.py", line 360, in dispatch_rpc
result = ExportService.getService(service_name).dispatch(method, params)
File "/home/ivan/projects/python/openerp/openerp-6.1-1/openerp/service/web_services.py", line 572, in dispatch
res = fn(db, uid, *params)
File "/home/ivan/projects/python/openerp/openerp-6.1-1/openerp/osv/osv.py", line 167, in execute_kw
return self.execute(db, uid, obj, method, *args, **kw or {})
File "/home/ivan/projects/python/openerp/openerp-6.1-1/openerp/osv/osv.py", line 121, in wrapper
return f(self, dbname, *args, **kwargs)
File "/home/ivan/projects/python/openerp/openerp-6.1-1/openerp/osv/osv.py", line 176, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/ivan/projects/python/openerp/openerp-6.1-1/openerp/addons/audittrail/audittrail.py", line 494, in execute_cr
return self.log_fct(cr, uid, model, method, fct_src, *args)
File "/home/ivan/projects/python/openerp/openerp-6.1-1/openerp/addons/audittrail/audittrail.py", line 291, in log_fct
old_values = self.get_data(cr, uid_orig, pool, res_ids, model, method)
File "/home/ivan/projects/python/openerp/openerp-6.1-1/openerp/addons/audittrail/audittrail.py", line 325, in get_data
for resource in resource_pool.read(cr, 1, res_ids):
File "/home/ivan/projects/python/openerp/openerp-6.1-1/openerp/osv/orm.py", line 3381, in read
result = self._read_flat(cr, user, select, fields, context, load)
File "/home/ivan/projects/python/openerp/openerp-6.1-1/openerp/osv/orm.py", line 3432, in _read_flat
for sub_ids in cr.split_for_in_conditions(ids):
File "/home/ivan/projects/python/openerp/openerp-6.1-1/openerp/sql_db.py", line 244, in split_for_in_conditions
return tools.misc.split_every(self.IN_MAX, set(ids))
TypeError: unhashable type: 'list'
There are any ideas?
Ivan.
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/1017483/+subscriptions
Follow ups
References