diff --git a/document_page/models/document_page.py b/document_page/models/document_page.py index 94db69d5..9b2a6ad5 100644 --- a/document_page/models/document_page.py +++ b/document_page/models/document_page.py @@ -153,10 +153,10 @@ class DocumentPage(models.Model): @api.multi def _inverse_content(self): for rec in self: - if rec.content: + if rec.type == 'content': rec._create_history({ 'content': rec.content, - 'summary': rec.summary + 'summary': rec.summary, }) @api.multi