From ba4095d48940c6e29c0eb09158fe8fa317c17ac2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Todorovich?= Date: Mon, 23 Apr 2018 16:27:38 -0300 Subject: [PATCH] [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. --- document_page/models/document_page_history.py | 1 - 1 file changed, 1 deletion(-) diff --git a/document_page/models/document_page_history.py b/document_page/models/document_page_history.py index 00317854..31411ba7 100644 --- a/document_page/models/document_page_history.py +++ b/document_page/models/document_page_history.py @@ -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']