Merge lp:~openerp-dev/openobject-addons/trunk-bug-1093467-kbh into lp:openobject-addons

Proposed by Khushboo Bhatt(openerp)
Status: Rejected
Rejected by: Martin Trigaux (OpenERP)
Proposed branch: lp:~openerp-dev/openobject-addons/trunk-bug-1093467-kbh
Merge into: lp:openobject-addons
Diff against target: 12 lines (+1/-1)
1 file modified
audittrail/audittrail.py (+1/-1)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/trunk-bug-1093467-kbh
Reviewer Review Type Date Requested Status
OpenERP Core Team Pending
Review via email: mp+141249@code.launchpad.net

Description of the change

Hello,

 audittrail:fixed the traceback when deleting record from object.

Thanks,
Khushboo.

To post a comment you must log in.
Revision history for this message
OpenERP4You (7a532kg9lsp0vi-support) wrote :

with this solution we dont get resource name name in audit logs

line no 462:
name = pool.get(model.model).name_get(cr, uid, [resource_id])

returns an empty list

Thanks:
Yogesh Kushwaha

Unmerged revisions

8481. By Khushboo Bhatt(openerp)

[FIX]audittrail:traceback when delete audit entry form object

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'audittrail/audittrail.py'
2--- audittrail/audittrail.py 2012-12-17 15:46:28 +0000
3+++ audittrail/audittrail.py 2012-12-26 08:39:23 +0000
4@@ -459,7 +459,7 @@
5
6 # if at least one modification has been found
7 for model_id, resource_id in lines:
8- name = pool.get(model.model).name_get(cr, uid, [resource_id])[0][1]
9+ name = pool.get(model.model).name_get(cr, uid, [resource_id])
10 vals = {
11 'method': method,
12 'object_id': model_id,

Subscribers

People subscribed via source and target branches

to all changes: