← Back to team overview

openerp-india team mailing list archive

[Bug 1093467] Re: Audit trail throws an error while deleting a record

 

Hello,

I have faced the following traceback:
Server Traceback (most recent call last):   File "/home/amp/workspace/rdtools/web/trunk/addons/web/session.py", line 87, in send     return openerp.netsvc.dispatch_rpc(service_name, method, args)   File "/home/amp/workspace/rdtools/server/trunk/openerp/netsvc.py", line 281, in dispatch_rpc     result = ExportService.getService(service_name).dispatch(method, params)   File "/home/amp/workspace/rdtools/server/trunk/openerp/service/web_services.py", line 614, in dispatch     res = fn(db, uid, *params)   File "/home/amp/workspace/rdtools/server/trunk/openerp/osv/osv.py", line 169, in execute_kw     return self.execute(db, uid, obj, method, *args, **kw or {})   File "/home/amp/workspace/rdtools/server/trunk/openerp/osv/osv.py", line 123, in wrapper     return f(self, dbname, *args, **kwargs)   File "/home/amp/workspace/rdtools/server/trunk/openerp/osv/osv.py", line 179, in execute     res = self.execute_cr(cr, uid, obj, method, *args, **kw)   File "/home/amp/workspace/rdtools/addons/trunk/audittrail/audittrail.py", line 513, in execute_cr     return self.log_fct(cr, uid, model, method, fct_src, *args, **kw)   File "/home/amp/workspace/rdtools/addons/trunk/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 "/home/amp/workspace/rdtools/addons/trunk/audittrail/audittrail.py", line 462, in process_data     name = pool.get(model.model).name_get(cr, uid, [resource_id])[0][1]   File "/home/amp/workspace/rdtools/server/trunk/openerp/addons/base/res/res_partner.py", line 404, in name_get     name = record.name   File "/home/amp/workspace/rdtools/server/trunk/openerp/osv/orm.py", line 486, in __getattr__     raise AttributeError(e) AttributeError: 'Field name not found in browse_record(res.partner, 68)' 

So I confirm this Issue with medium Importance.

Thanks!

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

** Changed in: openobject-server
   Importance: Undecided => Medium

** Changed in: openobject-server
     Assignee: (unassigned) => OpenERP R&D Addons Team 1 (openerp-dev-addons1)

** Project changed: openobject-server => openobject-addons

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Server.
https://bugs.launchpad.net/bugs/1093467

Title:
  Audit trail throws an error while deleting a record

Status in OpenERP Addons (modules):
  Confirmed

Bug description:
  If we set audit rules for an object , not able to delete a record from
  that object.in server 7.0 beta

  I got the following error:

  File "/home/erp/workspace/openerp/openerp-6.2dev-20121116-000101/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
  Please fix it

  Thank you

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


References