audittrail cannot log some records
Bug #592990 reported by
Albert Cervera i Areny - http://www.NaN-tic.com
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Models that do not use _rec_name but name_get() cannot be logged using audittrail and it raises a crash. The attached patch, fixes the problem.
Related branches
lp:~openerp-community-committers/openobject-addons/5.0-bugfix-592990
Ready for review
for merging
into
lp:~openerp-community-committers/openobject-addons/5.0
- OpenERP Community Committers: Pending requested
-
Diff: 45 lines (+9/-24)1 file modifiedaudittrail/audittrail.py (+9/-24)
Changed in openobject-addons: | |
status: | New → Triaged |
Changed in openobject-addons: | |
status: | Triaged → Incomplete |
To post a comment you must log in.
Hi Albert,
I would like to know for which object could it crash?
Models should either have a name field or _rec_name member.
Exemplify the situation please.
Thanks.