Merge lp:~openerp-dev/openobject-addons/7.0-opw-589931-rgo into lp:openobject-addons/7.0
Status: | Rejected | ||||
---|---|---|---|---|---|
Rejected by: | Martin Trigaux (OpenERP) | ||||
Proposed branch: | lp:~openerp-dev/openobject-addons/7.0-opw-589931-rgo | ||||
Merge into: | lp:openobject-addons/7.0 | ||||
Diff against target: |
25 lines (+6/-2) 1 file modified
audittrail/audittrail.py (+6/-2) |
||||
To merge this branch: | bzr merge lp:~openerp-dev/openobject-addons/7.0-opw-589931-rgo | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Leonardo Pistone (community) | green runbot, thanks to ravi | Approve | |
Lithin T (community) | Approve | ||
Naresh(OpenERP) (community) | Approve | ||
Csaba TOTH (community) | Disapprove | ||
Review via email: mp+156130@code.launchpad.net |
Description of the change
Hi,
Steps to reproduce:
1) Install audittrail module,
2) Goto "Reporting/
3) Goto that object and try to delete any of record,
You will face traceback saying,
...
File "/home/
name = pool.get(
IndexError: list index out of range
The issue is faced as the "unlink" was called prior for the resource record(
So, I fixed this issue by taking name from "old_values" dictionary if method is "unlink".
Kindly review the fix.
Thanks.
Hi,
i think calling the name_get and queriying the name field is not the same. If i create a table and define name_get (there is no name field), this way it won't called, and querying the name field will return empty or gone to error.
I think you need to move this query before the unlink method.
I am so sorry if i am wrong, i didn't tested the code, just looked at it!