mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-16 04:02:56 -06:00
[IMP] document_page_approval: pre-commit auto fixes
This commit is contained in:
parent
116562d394
commit
a53bc19077
@ -20,8 +20,14 @@
|
|||||||
<h1>
|
<h1>
|
||||||
<a t-att-href="object.page_url" t-out="object.display_name" />
|
<a t-att-href="object.page_url" t-out="object.display_name" />
|
||||||
</h1>
|
</h1>
|
||||||
<p><b>Modified by:</b> <t t-out="object.create_uid.name" /></p>
|
<p>
|
||||||
<p><b>Date:</b> <t t-out="object.create_date" /></p>
|
<b>Modified by:</b>
|
||||||
|
<t t-out="object.create_uid.name" />
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<b>Date:</b>
|
||||||
|
<t t-out="object.create_date" />
|
||||||
|
</p>
|
||||||
<t t-if="object.summary">
|
<t t-if="object.summary">
|
||||||
<h3>Summary</h3>
|
<h3>Summary</h3>
|
||||||
<p t-out="object.summary" />
|
<p t-out="object.summary" />
|
||||||
|
@ -151,8 +151,9 @@ class DocumentPageHistory(models.Model):
|
|||||||
)
|
)
|
||||||
|
|
||||||
page.page_url = (
|
page.page_url = (
|
||||||
"{}/web#db={}&id={}&" "model=document.page.history"
|
f"{base_url}/web#db={self.env.cr.dbname}&id={page.id}&"
|
||||||
).format(base_url, self.env.cr.dbname, page.id)
|
"model=document.page.history"
|
||||||
|
)
|
||||||
|
|
||||||
def _compute_diff(self):
|
def _compute_diff(self):
|
||||||
"""Shows a diff between this version and the previous version"""
|
"""Shows a diff between this version and the previous version"""
|
||||||
|
Loading…
Reference in New Issue
Block a user