mirror of
https://github.com/OCA/knowledge.git
synced 2025-12-19 03:42:19 -06:00
Updated from template
This commit is contained in:
committed by
Justine Doutreloux
parent
e7c562205e
commit
8ef3f40ee4
@@ -106,7 +106,7 @@ class DocumentPage(models.Model):
|
||||
action = parent.menu_id.action
|
||||
parent = parent.parent_id
|
||||
if action:
|
||||
url += "&action={}".format(action.id)
|
||||
url += f"&action={action.id}"
|
||||
rec.backend_url = url
|
||||
|
||||
@api.constrains("parent_id")
|
||||
@@ -122,7 +122,7 @@ class DocumentPage(models.Model):
|
||||
]
|
||||
r = ""
|
||||
if link:
|
||||
r = '<a href="{}">{}</a>'.format(self.backend_url, self.name)
|
||||
r = f'<a href="{self.backend_url}">{self.name}</a>'
|
||||
if index:
|
||||
r += "<ul>" + "".join(index) + "</ul>"
|
||||
return r
|
||||
|
||||
Reference in New Issue
Block a user