← Back to team overview

openerp-india team mailing list archive

[Bug 1177840] Re: [trunk/7.0] audit trail error for object hr.employee

 

*** This bug is a duplicate of bug 1093467 ***
    https://bugs.launchpad.net/bugs/1093467

I tested the patch here:
http://bazaar.launchpad.net/~openerp-dev/openobject-addons/7.0-opw-589931-rgo/revision/9290
And it works to fix this issue.

-- 
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/1177840

Title:
  [trunk/7.0] audit trail error for object hr.employee

Status in OpenERP Addons (modules):
  Fix Committed

Bug description:
  Version:
  OpenERP 7.0-20130315-002515
  Auditrail 7.0.1.0

  OWhen activating a subscription for the hr.employee object (log
  deletes, writes, creates), an error is given when modifying an
  employee, making it impossible to make changes to the employee.

  The error is the following:
  ========================
  Client Traceback (most recent call last):
    File "/usr/lib/pymodules/python2.7/openerp/addons/web/http.py", line 203, in dispatch
      response["result"] = method(self, **self.params)
    File "/usr/lib/pymodules/python2.7/openerp/addons/web/controllers/main.py", line 1117, in call_kw
      return self._call_kw(req, model, method, args, kwargs)
    File "/usr/lib/pymodules/python2.7/openerp/addons/web/controllers/main.py", line 1109, in _call_kw
      return getattr(req.session.model(model), method)(*args, **kwargs)
    File "/usr/lib/pymodules/python2.7/openerp/addons/web/session.py", line 43, in proxy
      result = self.proxy.execute_kw(self.session._db, self.session._uid, self.session._password, self.model, method, args, kw)
    File "/usr/lib/pymodules/python2.7/openerp/addons/web/session.py", line 31, in proxy_method
      result = self.session.send(self.service_name, method, *args)
    File "/usr/lib/pymodules/python2.7/openerp/addons/web/session.py", line 104, in send
      raise xmlrpclib.Fault(openerp.tools.ustr(e), formatted_info)

  
  Server Traceback (most recent call last):
    File "/usr/lib/pymodules/python2.7/openerp/addons/web/session.py", line 90, in send
      return openerp.netsvc.dispatch_rpc(service_name, method, args)
    File "/usr/lib/pymodules/python2.7/openerp/netsvc.py", line 293, in dispatch_rpc
      result = ExportService.getService(service_name).dispatch(method, params)
    File "/usr/lib/pymodules/python2.7/openerp/service/web_services.py", line 626, in dispatch
      res = fn(db, uid, *params)
    File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 188, in execute_kw
      return self.execute(db, uid, obj, method, *args, **kw or {})
    File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 131, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 197, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/usr/lib/pymodules/python2.7/openerp/addons/audittrail/audittrail.py", line 513, in execute_cr
      return self.log_fct(cr, uid, model, method, fct_src, *args, **kw)
    File "/usr/lib/pymodules/python2.7/openerp/addons/audittrail/audittrail.py", line 303, in log_fct
      self.process_data(cr, uid_orig, pool, res_ids, model, method, old_values, new_values, field_list)
    File "/usr/lib/pymodules/python2.7/openerp/addons/audittrail/audittrail.py", line 462, in process_data
      name = pool.get(model.model).name_get(cr, uid, [resource_id])[0][1]
  IndexError: list index out of range
  ========================

  Best regards, Giulio Marcon

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1177840/+subscriptions