[IMP] document_page_approval: pre-commit auto fixes

This commit is contained in:
Bhavesh Heliconia 2025-02-17 16:50:26 +05:30
parent 116562d394
commit a53bc19077
3 changed files with 15 additions and 8 deletions

View File

@ -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" />

View File

@ -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"""