mirror of
https://github.com/OCA/knowledge.git
synced 2025-12-22 13:22:19 -06:00
[MIG] document_page_approval: Migration to 17.0
This commit is contained in:
committed by
Víctor Martínez
parent
b919f6bf72
commit
74660f10b7
@@ -66,11 +66,5 @@ class DocumentPageHistory(models.Model):
|
||||
context=True,
|
||||
)
|
||||
|
||||
# TODO: Replace for _compute_display_name
|
||||
def name_get(self):
|
||||
return [(rec.id, "%s #%i" % (rec.page_id.name, rec.id)) for rec in self]
|
||||
|
||||
@api.depends("page_id")
|
||||
def _compute_display_name(self):
|
||||
for rec in self:
|
||||
rec.display_name = rec.id, "%s #%i" % (rec.page_id.name, rec.id)
|
||||
|
||||
Reference in New Issue
Block a user