openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #23116
[Bug 1111597] Re: Audittrail generates KeyError on models that define column 'id'
** Summary changed:
- Audittrail generates KeyError on some models
+ Audittrail generates KeyError on models that define column 'id'
** Description changed:
Steps to reproduce:
1. Install crm module and add some crm.lead objects.
2. Install Audittrail module and add rule to track crm.lead changes.
3. Try to change some fields of crm.lead object.
4. You will not be able to save the changes because of Audittrail's KeyError.
- You can avoid this error by changing the way you access dictionary elements in prepare_audittrail_log_line function from
- old_values[key]['value']['field_name']
- to
- old_values[key]['value'].get(field_name)
+ This is triggered by the fact that crm.lead defines the column 'id'
+ which is filtered out in http://bazaar.launchpad.net/~openerp
+ /openobject-addons/6.1/view/head:/audittrail/audittrail.py#L331
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1111597
Title:
Audittrail generates KeyError on models that define column 'id'
Status in OpenERP Addons (modules):
New
Status in Therp Backports:
New
Status in Therp Backports addons-6.1 series:
New
Bug description:
Steps to reproduce:
1. Install crm module and add some crm.lead objects.
2. Install Audittrail module and add rule to track crm.lead changes.
3. Try to change some fields of crm.lead object.
4. You will not be able to save the changes because of Audittrail's KeyError.
This is triggered by the fact that crm.lead defines the column 'id'
which is filtered out in http://bazaar.launchpad.net/~openerp
/openobject-addons/6.1/view/head:/audittrail/audittrail.py#L331
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1111597/+subscriptions
References