From f0778bc4625f6fa766d72bd867a4e3961a015736 Mon Sep 17 00:00:00 2001 From: Aktiv Software Date: Fri, 29 Oct 2021 12:49:45 +0000 Subject: [PATCH] [FW][FIX] sale: properly show order rejection feedback on sale portal **Description of the issue/feature this PR addresses:** There is no message shown to guest user on portal when he tries to reject a quotation. **Current behavior before PR:** When a guest user tried to reject am order in quotation state the popup just closed and did not give him any feedback or message that why the order is not getting cancelled. **Desired behavior after PR is merged:** In the /decline controller there is already a check via has_to_be_signed() method. If the check fails `message=cant_reject` is added to query_string. On the XML side there is another check made towards has_to_be_signed method which will not render the message. This commit removes the duplicate check from XML side and the message is now shown correctly to the portal user. Fixes #79205 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr closes odoo/odoo#79409 Forward-port-of: odoo/odoo#79207 Signed-off-by: Victor Feyens (vfe) --- addons/sale/views/sale_portal_templates.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/sale/views/sale_portal_templates.xml b/addons/sale/views/sale_portal_templates.xml index dad41c2bb14..30c7b3e9d1b 100644 --- a/addons/sale/views/sale_portal_templates.xml +++ b/addons/sale/views/sale_portal_templates.xml @@ -281,7 +281,7 @@ Your order has been signed. -