Merge lp:~openerp-dev/openobject-addons/7.0-fix-auditrail-mat into lp:openobject-addons/7.0
Proposed by
Martin Trigaux (OpenERP)
Status: | Merged |
---|---|
Merged at revision: | 9808 |
Proposed branch: | lp:~openerp-dev/openobject-addons/7.0-fix-auditrail-mat |
Merge into: | lp:openobject-addons/7.0 |
Diff against target: |
50 lines (+12/-4) 1 file modified
audittrail/audittrail.py (+12/-4) |
To merge this branch: | bzr merge lp:~openerp-dev/openobject-addons/7.0-fix-auditrail-mat |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
OpenERP Core Team | Pending | ||
Review via email: mp+204694@code.launchpad.net |
Description of the change
Fixing several bugs in the audittrail module
- iter only on fields on __all_columns, this avoids getting virtual fields such as 'in_group_42' for res.users
- make sure read method calls works when passing only one id (lp:1214149)
- when iterating on change values, if different model (eg: if field is o2m) make sure make name_get on the model of the field and not on the parent model
- unlink retrieves first the record and then execute the unlink (the other way around is causes problems for name_get...)
To post a comment you must log in.