From 25cf10aad2bd34d24f7d73451cdac8f0429f87a0 Mon Sep 17 00:00:00 2001 From: Jeroen Vet Date: Tue, 23 Feb 2021 16:48:02 +0800 Subject: [PATCH] [MIG] document_page_approval: Migration to 14.0 --- document_page_approval/__manifest__.py | 2 +- document_page_approval/models/document_page_history.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/document_page_approval/__manifest__.py b/document_page_approval/__manifest__.py index e2d23982..eaf8b91e 100644 --- a/document_page_approval/__manifest__.py +++ b/document_page_approval/__manifest__.py @@ -3,7 +3,7 @@ { "name": "Document Page Approval", - "version": "13.0.1.0.0", + "version": "14.0.1.0.0", "author": "Savoir-faire Linux, Odoo Community Association (OCA)", "website": "https://github.com/OCA/knowledge", "license": "AGPL-3", diff --git a/document_page_approval/models/document_page_history.py b/document_page_approval/models/document_page_history.py index 4d70f86f..933496c4 100644 --- a/document_page_approval/models/document_page_history.py +++ b/document_page_approval/models/document_page_history.py @@ -110,13 +110,13 @@ class DocumentPageHistory(models.Model): rec.page_id._compute_history_head() # Notify state change rec.message_post( - subtype="mt_comment", + subtype_xmlid="mail.mt_comment", body=_("Change request has been approved by %s.") % (self.env.user.name), ) # Notify followers a new version is available rec.page_id.message_post( - subtype="mt_comment", + subtype_xmlid="mail.mt_comment", body=_("New version of the document %s approved.") % (rec.page_id.name), ) @@ -125,7 +125,7 @@ class DocumentPageHistory(models.Model): self.write({"state": "cancelled"}) for rec in self: rec.message_post( - subtype="mt_comment", + subtype_xmlid="mail.mt_comment", body=_("Change request %s has been cancelled by %s.") % (rec.display_name, self.env.user.name), )