[7.0] audittrail delete event on employee doesn't work

Bug #1171981 reported by Dieter
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
New
Undecided
Unassigned

Bug Description

Running on 7.0 branch, using the latest revision of 22nd april 2013
Running on Windows
Running on Postgres 9.2
Clean database, without demo data
Installed 'audittrail' and 'employee directory'
create an audittrail rule, that logs the create, write and delete events

create an employee
all is well, the create event is logged
delete the employee
There is a stacktrace:
Traceback (most recent call last):
  File "C:\OpenERP\bzr\server\openerp\netsvc.py", line 293, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "C:\OpenERP\bzr\server\openerp\service\web_services.py", line 626, in dispatch
    res = fn(db, uid, *params)
  File "C:\OpenERP\bzr\server\openerp\osv\osv.py", line 188, in execute_kw
    return self.execute(db, uid, obj, method, *args, **kw or {})
  File "C:\OpenERP\bzr\server\openerp\osv\osv.py", line 131, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "C:\OpenERP\bzr\server\openerp\osv\osv.py", line 197, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "C:\OpenERP\bzr\addons\audittrail\audittrail.py", line 513, in execute_cr
    return self.log_fct(cr, uid, model, method, fct_src, *args, **kw)
  File "C:\OpenERP\bzr\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 "C:\OpenERP\bzr\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

This only happens when performing a delete.

Tags: 7.0
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.