From fc42effbdfd48f0bfaa5c6d5f7a96b3a5e5a986b Mon Sep 17 00:00:00 2001 From: "Maruan Aguerdouh (magm)" Date: Mon, 12 Feb 2024 11:31:26 +0100 Subject: [PATCH] [FIX] website_sale_slides: prevent payment screen crash on pending transactions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Issue: When a course is set to 'On Payment' and linked to our 'Course Access' product, users encounter an issue where they cannot view the final screen of the payment process when selecting payment methods like 'wire transfer'. This occurs because the payment status remains 'pending', and the user has not yet been granted access to the course, meaning no invitation link is available. Steps to Reproduce: 1. Install website_sale_slides. 2. Create or modify a course with the 'On Payment' status. 3. Link it to a 'Course Access' product. 4. Navigate to the website and attempt to purchase the course. 5. Proceed through all the steps of the payment process. Solution: The template needs to accommodate scenarios where certain payment methods do not immediately provide an invitation link. Even without the invitation link, it should still display the last payment screen, awaiting payment confirmation to grant access. opw-3683024 closes odoo/odoo#161618 X-original-commit: eee6222763b4d88f75994b498d15cd4358899fc1 Signed-off-by: Stéphane Debauche (std) Signed-off-by: Maruan Aguerdouh Mohtar (magm) --- addons/website_sale_slides/views/website_sale_templates.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/website_sale_slides/views/website_sale_templates.xml b/addons/website_sale_slides/views/website_sale_templates.xml index da20157fdd0..820c0c296fc 100644 --- a/addons/website_sale_slides/views/website_sale_templates.xml +++ b/addons/website_sale_slides/views/website_sale_templates.xml @@ -21,7 +21,7 @@ - +

@@ -31,7 +31,7 @@ - step(s)
- + Start Learning