mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-26 10:28:40 -06:00
Add api.depends on computed diff
This commit is contained in:
parent
dbeec6ef0f
commit
a125c0bf5d
@ -35,6 +35,7 @@ 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']
|
||||
|
Loading…
Reference in New Issue
Block a user