Browse Source

[FIX] ie related fields don't have an

ir.model.fields entry
pull/178/head
Holger Brunn 10 years ago
parent
commit
0bac0a898e
  1. 2
      auditlog/models/rule.py

2
auditlog/models/rule.py

@ -389,6 +389,7 @@ class auditlog_rule(models.Model):
if field_name in FIELDS_BLACKLIST: if field_name in FIELDS_BLACKLIST:
continue continue
field = self._get_field(log.model_id, field_name) field = self._get_field(log.model_id, field_name)
if field:
log_vals = self._prepare_log_line_vals_on_write( log_vals = self._prepare_log_line_vals_on_write(
log, field, old_values, new_values) log, field, old_values, new_values)
log_line_model.create(log_vals) log_line_model.create(log_vals)
@ -434,6 +435,7 @@ class auditlog_rule(models.Model):
if field_name in FIELDS_BLACKLIST: if field_name in FIELDS_BLACKLIST:
continue continue
field = self._get_field(log.model_id, field_name) field = self._get_field(log.model_id, field_name)
if field:
log_vals = self._prepare_log_line_vals_on_create( log_vals = self._prepare_log_line_vals_on_create(
log, field, new_values) log, field, new_values)
log_line_model.create(log_vals) log_line_model.create(log_vals)

Loading…
Cancel
Save