diff --git a/document_page_approval/models/document_page_history.py b/document_page_approval/models/document_page_history.py index 759693b99ef..1c988b6c45c 100644 --- a/document_page_approval/models/document_page_history.py +++ b/document_page_approval/models/document_page_history.py @@ -78,7 +78,7 @@ def action_to_approve(self): [("groups_id", "in", guids), ("groups_id", "in", approver_gid.id)] ) rec.message_subscribe(partner_ids=users.mapped("partner_id").ids) - rec.message_post_with_source(template.id) + rec.message_post_with_source(template) else: # auto-approve if approval is not required rec.action_approve()