From d45dd7ff546b5e254e234ca4a8f03ba94b045ec3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Mart=C3=ADnez?= Date: Mon, 17 Mar 2025 11:12:35 +0100 Subject: [PATCH] [FIX] document_page_approval: Add Change Request Manager rule Steps to reproduce the error: - Modify the content of a page (with a different user). - Go to the Change request menu and Cancel the change. - Click on the "Back to draft" button. - An error will be displayed TT55569 --- .../security/document_page_security.xml | 13 +++++++++++++ .../views/document_page_approval.xml | 1 + 2 files changed, 14 insertions(+) diff --git a/document_page_approval/security/document_page_security.xml b/document_page_approval/security/document_page_security.xml index b8b9fb2b..744e8832 100644 --- a/document_page_approval/security/document_page_security.xml +++ b/document_page_approval/security/document_page_security.xml @@ -36,4 +36,17 @@ + + Change Request Manager + + + [(1, '=', 1)] + + + + + diff --git a/document_page_approval/views/document_page_approval.xml b/document_page_approval/views/document_page_approval.xml index 34fc4587..d05eeeef 100644 --- a/document_page_approval/views/document_page_approval.xml +++ b/document_page_approval/views/document_page_approval.xml @@ -45,6 +45,7 @@ type="object" string="Back to draft" invisible="(not am_i_owner or not am_i_approver) and (state not in ('cancelled', 'to approve'))" + groups="document_page.group_document_manager" />