From 8600de4ccb9e4c44ff9f507d981a4ac98b6a4f68 Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Wed, 8 Jul 2015 12:47:53 +0200 Subject: [PATCH] [ADD] comment --- auditlog/models/rule.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/auditlog/models/rule.py b/auditlog/models/rule.py index 03962cc8f..67acb7a81 100644 --- a/auditlog/models/rule.py +++ b/auditlog/models/rule.py @@ -358,6 +358,7 @@ class auditlog_rule(models.Model): if field_name in FIELDS_BLACKLIST: continue field = self._get_field(log.model_id, field_name) + # not all fields have an ir.models.field entry (ie. related fields) if field: log_vals = self._prepare_log_line_vals_on_read( log, field, read_values) @@ -389,6 +390,7 @@ class auditlog_rule(models.Model): if field_name in FIELDS_BLACKLIST: continue field = self._get_field(log.model_id, field_name) + # not all fields have an ir.models.field entry (ie. related fields) if field: log_vals = self._prepare_log_line_vals_on_write( log, field, old_values, new_values) @@ -435,6 +437,7 @@ class auditlog_rule(models.Model): if field_name in FIELDS_BLACKLIST: continue field = self._get_field(log.model_id, field_name) + # not all fields have an ir.models.field entry (ie. related fields) if field: log_vals = self._prepare_log_line_vals_on_create( log, field, new_values)