From 956e7a460a9f1eb2484ed0bcb594b9855274953a 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 9b5bdb72..ebab7e43 100644 --- a/document_page/models/document_page_history.py +++ b/document_page/models/document_page_history.py @@ -21,7 +21,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']