Comment 3 for bug 1157497

Revision history for this message
Alvar Vilu (alvar-vilu) wrote :

Hi!

In audittrail_objects_proxy get_data method:

            for field in resource:
                if field in ('__last_update', 'id'):
                    continue

This loops trought all fields in model.
It seems that res.partner has some mystical fields in it like a:
'sel_groups_7_12_8': 8, 'sel_groups_53_54': 54

I don't know why they exist or why they are needed but they are not real fields.
So a quick fix will be :

            for field in resource:
                if field in ('__last_update', 'id') or not resource_pool._all_columns.get(field):
                    continue

This way field existance gets verified.