← Back to team overview

openerp-india team mailing list archive

[Bug 1214149] Re: Audit Trail - TypeError: string indices must be integers, not str

 

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
   Importance: Undecided => Medium

** Changed in: openobject-addons
       Status: New => Confirmed

** Changed in: openobject-addons
     Assignee: (unassigned) => OpenERP Publisher's Warranty Team (openerp-opw)

** Summary changed:

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

-- 
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:
  [7.0]Audit Trail - TypeError: string indices must be integers, not str

Status in OpenERP Addons (modules):
  Confirmed

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