Audit trail throws an error while deleting a record

Bug #1093467 reported by OpenERP4You
76
This bug affects 12 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Medium
OpenERP R&D Addons Team 1

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

Related branches

Revision history for this message
Amit Bhavsar (Open ERP) (amb-openerp) wrote :

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
importance: Undecided → Medium
assignee: nobody → OpenERP R&D Addons Team 1 (openerp-dev-addons1)
affects: openobject-server → openobject-addons
Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Khushboo Bhatt(openerp) (kbh-openerp) wrote :

Hello,

This isssue has been fixed on lp:~openerp-dev/openobject-addons/trunk-bug-1093467-kbh branch with following rev no and rev ID

Rev No : 8481
Revision ID: <email address hidden>

Thanks,
Khushboo.

Changed in openobject-addons:
status: In Progress → Fix Committed
Revision history for this message
OpenERP4You (7a532kg9lsp0vi-support) wrote :

This I already tried. If you go this way ..it surely will make you able to delete and make its audit log ..but there is a blank list of resource name in audt logs...so I think this is not the complete solution

Revision history for this message
Ravi Gohil (OpenERP) (rgo-openerp) wrote :

For V7, this issue has been fixed in,
Branch: lp:~openerp-dev/openobject-addons/7.0-opw-589931-rgo
Rev Id: <email address hidden>
Rev #: 8955

The branch will soon be integrated with main stable branch.

Thanks.

Revision history for this message
L.S. Advanced Software (lsadvanced) wrote :

Hi,
any time estimate for merging the fix on stable branch?
thanks

dj

Revision history for this message
Manuel Vazquez Acosta (mva-led) wrote :

I have a similar issue. Problaby the same, but the traceback differs.

See http://help.openerp.com/question/43830/audit-trail-impedes-deleting-journal-entries-accountmove/

Revision history for this message
Martin Trigaux (OpenERP) (mat-openerp) wrote :

Hello,

This was fixed in 7.0 at the following revision.

revno: 9808 [merge]
revision-id: <email address hidden>

Regards

Changed in openobject-addons:
status: Fix Committed → Fix Released
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.