[document_page] FIX creating history when there are no changes made. Add history name field, to name revisions. Modified views to allow setting this field.

This commit is contained in:
Iván Todorovich
2018-04-20 10:42:10 -03:00
parent e37d525e29
commit 31d95fe243
4 changed files with 31 additions and 13 deletions

View File

@@ -14,8 +14,9 @@ class DocumentPageHistory(models.Model):
_order = 'id DESC'
page_id = fields.Many2one('document.page', 'Page', ondelete='cascade')
summary = fields.Char('Summary', index=True)
content = fields.Text("Content")
name = fields.Char(index=True)
summary = fields.Char(index=True)
content = fields.Text()
diff = fields.Text(compute='_compute_diff')
@api.multi