Browse Source
[IMP] Module 'auditlog' - Autoremove 'auditlog.log.line' records when a field is deleted (e.g. migration)
pull/1040/head
sebalix
10 years ago
committed by
Enric Tobella
No known key found for this signature in database
GPG Key ID: 1A2546A1B7BA2451
1 changed files with
1 additions and
1 deletions
-
auditlog/models/log.py
|
|
@ -43,7 +43,7 @@ class auditlog_log_line(models.Model): |
|
|
|
_description = "Auditlog - Log details (fields updated)" |
|
|
|
|
|
|
|
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( |
|
|
|
'auditlog.log', string=u"Log", ondelete='cascade') |
|
|
|
old_value = fields.Text(u"Old Value") |
|
|
|