openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #24688
[Bug 1214149] Re: Audit Trail - TypeError: string indices must be integers, not str
I confirm, same error.
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1214149
Title:
Audit Trail - TypeError: string indices must be integers, not str
Status in OpenERP Addons (modules):
New
Bug description:
Unable to audit user logins.
Way to reproduce :
* Create a new DB
* log as admin
* create a new user, install audit trail, add a rule on res_users for all events
* connect as the new user
You get the following :
2013-08-19 21:32:40,111 18149 ERROR d2 openerp.osv.osv: Uncaught exception
Traceback (most recent call last):
File "/home/mcassuto/SFL/openERP/7.0/server/openerp/osv/osv.py", line 131, in wrapper
return f(self, dbname, *args, **kwargs)
File "/home/mcassuto/SFL/openERP/7.0/server/openerp/osv/osv.py", line 197, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/mcassuto/SFL/openERP/7.0/addons/audittrail/audittrail.py", line 513, in execute_cr
return self.log_fct(cr, uid, model, method, fct_src, *args, **kw)
File "/home/mcassuto/SFL/openERP/7.0/addons/audittrail/audittrail.py", line 278, in log_fct
res_ids.append(record['id'])
TypeError: string indices must be integers, not str
2013-08-19 21:32:40,112 18149 ERROR d2 openerp.netsvc: string indices must be integers, not str
Traceback (most recent call last):
File "/home/mcassuto/SFL/openERP/7.0/server/openerp/netsvc.py", line 292, in dispatch_rpc
result = ExportService.getService(service_name).dispatch(method, params)
File "/home/mcassuto/SFL/openERP/7.0/server/openerp/service/web_services.py", line 626, in dispatch
res = fn(db, uid, *params)
File "/home/mcassuto/SFL/openERP/7.0/server/openerp/osv/osv.py", line 188, in execute_kw
return self.execute(db, uid, obj, method, *args, **kw or {})
File "/home/mcassuto/SFL/openERP/7.0/server/openerp/osv/osv.py", line 131, in wrapper
return f(self, dbname, *args, **kwargs)
File "/home/mcassuto/SFL/openERP/7.0/server/openerp/osv/osv.py", line 197, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/mcassuto/SFL/openERP/7.0/addons/audittrail/audittrail.py", line 513, in execute_cr
return self.log_fct(cr, uid, model, method, fct_src, *args, **kw)
File "/home/mcassuto/SFL/openERP/7.0/addons/audittrail/audittrail.py", line 278, in log_fct
res_ids.append(record['id'])
TypeError: string indices must be integers, not str
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1214149/+subscriptions
References