Browse Source

[IMP] Module 'auditlog' - Autoremove 'auditlog.log.line' records when a field is deleted (e.g. migration)

pull/119/head
sebalix 10 years ago
parent
commit
d486ab8bb7
  1. 2
      auditlog/models/log.py

2
auditlog/models/log.py

@ -43,7 +43,7 @@ class auditlog_log_line(models.Model):
_description = "Auditlog - Log details (fields updated)" _description = "Auditlog - Log details (fields updated)"
field_id = fields.Many2one( field_id = fields.Many2one(
'ir.model.fields', string=u"Field", required=True)
'ir.model.fields', ondelete='cascade', string=u"Field", required=True)
log_id = fields.Many2one( log_id = fields.Many2one(
'auditlog.log', string=u"Log", ondelete='cascade') 'auditlog.log', string=u"Log", ondelete='cascade')
old_value = fields.Text(u"Old Value") old_value = fields.Text(u"Old Value")

Loading…
Cancel
Save