[7.0]Audit Trail - TypeError: string indices must be integers, not str

Bug #1214149 reported by Marc Cassuto (SFL)
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Confirmed
Medium
OpenERP Publisher's Warranty Team

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

Related branches

Revision history for this message
Vassy (vassy) wrote :

I confirm, same error.

Revision history for this message
Twinkle Christian(OpenERP) (tch-openerp) wrote :

Hello Marc,

I am facing this issue only with V7.0, otherwise for trunk its working fine at all. So, I am confirming this issue and assign it to OPW team as this issue is considered as a blocking issue.

Thank you.

Changed in openobject-addons:
assignee: nobody → OpenERP Publisher's Warranty Team (openerp-opw)
importance: Undecided → Medium
status: New → Confirmed
summary: - Audit Trail - TypeError: string indices must be integers, not str
+ [7.0]Audit Trail - TypeError: string indices must be integers, not str
Revision history for this message
Oliver Yuan (oliver-yuan) wrote :

Any update? The issue is still there

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.