mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-13 07:24:48 -06:00
[IMP] document_page_approval: pre-commit auto fixes
This commit is contained in:
parent
116562d394
commit
a53bc19077
@ -15,13 +15,19 @@
|
||||
<field name="body_html" type="html">
|
||||
<p>Hello,</p>
|
||||
<p><t t-out="object.create_uid.name" /> submited a new Change Request for <b
|
||||
t-out="object.page_id.name"
|
||||
/> and it needs your approval.</p>
|
||||
t-out="object.page_id.name"
|
||||
/> and it needs your approval.</p>
|
||||
<h1>
|
||||
<a t-att-href="object.page_url" t-out="object.display_name" />
|
||||
</h1>
|
||||
<p><b>Modified by:</b> <t t-out="object.create_uid.name" /></p>
|
||||
<p><b>Date:</b> <t t-out="object.create_date" /></p>
|
||||
<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">
|
||||
<h3>Summary</h3>
|
||||
<p t-out="object.summary" />
|
||||
|
@ -151,8 +151,9 @@ class DocumentPageHistory(models.Model):
|
||||
)
|
||||
|
||||
page.page_url = (
|
||||
"{}/web#db={}&id={}&" "model=document.page.history"
|
||||
).format(base_url, self.env.cr.dbname, page.id)
|
||||
f"{base_url}/web#db={self.env.cr.dbname}&id={page.id}&"
|
||||
"model=document.page.history"
|
||||
)
|
||||
|
||||
def _compute_diff(self):
|
||||
"""Shows a diff between this version and the previous version"""
|
||||
|
@ -133,7 +133,7 @@
|
||||
invisible="not has_changes_pending_approval"
|
||||
>
|
||||
This document has <b
|
||||
>Changes Pending Approval</b>. You are viewing the last approved content.
|
||||
>Changes Pending Approval</b>. You are viewing the last approved content.
|
||||
</div>
|
||||
<div
|
||||
class="alert alert-warning oe_edit_only"
|
||||
@ -142,7 +142,7 @@
|
||||
invisible="not is_approval_required"
|
||||
>
|
||||
This document requires approval. If edited, you will create a new <b
|
||||
>Change Request</b>.
|
||||
>Change Request</b>.
|
||||
</div>
|
||||
<div
|
||||
class="alert alert-warning oe_edit_only"
|
||||
|
Loading…
Reference in New Issue
Block a user