diff --git a/document_page_approval/data/email_template.xml b/document_page_approval/data/email_template.xml index 605866a7..b6089065 100644 --- a/document_page_approval/data/email_template.xml +++ b/document_page_approval/data/email_template.xml @@ -15,13 +15,19 @@

Hello,

submited a new Change Request for and it needs your approval.

+ t-out="object.page_id.name" + /> and it needs your approval.

-

Modified by:

-

Date:

+

+ Modified by: + +

+

+ Date: + +

Summary

diff --git a/document_page_approval/models/document_page_history.py b/document_page_approval/models/document_page_history.py index c2c89af9..84a0ebc4 100644 --- a/document_page_approval/models/document_page_history.py +++ b/document_page_approval/models/document_page_history.py @@ -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""" diff --git a/document_page_approval/views/document_page_approval.xml b/document_page_approval/views/document_page_approval.xml index dce962ce..34fc4587 100644 --- a/document_page_approval/views/document_page_approval.xml +++ b/document_page_approval/views/document_page_approval.xml @@ -133,7 +133,7 @@ invisible="not has_changes_pending_approval" > This document has Changes Pending Approval. You are viewing the last approved content. + >Changes Pending Approval. You are viewing the last approved content.

This document requires approval. If edited, you will create a new Change Request. + >Change Request.