[document_page] FIX BUG: UI hanging when editing content. This was due to the api.depends on _compute_diff. Removing it because it's not really necessary since the field is not stored.

This commit is contained in:
Iván Todorovich 2018-04-23 16:27:38 -03:00
parent 31d95fe243
commit 57468bd4b3

View File

@ -20,7 +20,6 @@ class DocumentPageHistory(models.Model):
diff = fields.Text(compute='_compute_diff')
@api.multi
@api.depends('content', 'page_id.history_ids')
def _compute_diff(self):
"""Shows a diff between this version and the previous version"""
history = self.env['document.page.history']