From e83dfa4eb51a597c355a2bbc0e2b32f947663d35 Mon Sep 17 00:00:00 2001 From: Thomas Josse Date: Fri, 17 Sep 2021 13:15:28 +0000 Subject: [PATCH] [IMP] website_(sale_)slides: clean frontend onboarding Purpose ======= Improve frontend onboarding: add placeholders, improve tour, improve experience when buying course (display what has been bought, avoid displaying buy now on an already purchased course). Specifications ============== The tour of the front-end has been updated. It adds a step to enter fullscreen mode and allow users to test it. It updates the placeholders for the quiz creation, adding examples and hints to ease user filling fields. The course purchasing flow has been improved. It adds a direct link to the purchased course(s) when the payment is done with the `sale_purchased_course` template. It also blocks the possibility to rebuy a course if the user is already a member of said course by showing the buying options only if `channel.is_member` is False. INdeed it makes no sense to display the "Buy" button when having already bought the course. This commit also removes the autocompletion of fields in modals. Task-2623471 closes odoo/odoo#77050 Signed-off-by: Thibault Delavallee (tde) --- addons/website_sale_slides/__manifest__.py | 1 + .../views/website_sale_templates.xml | 37 +++++++++++++++++++ .../views/website_slides_templates.xml | 16 ++++---- .../static/src/js/tours/slides_tour.js | 5 ++- .../static/src/scss/website_slides.scss | 36 +++++++++--------- .../static/src/xml/slide_quiz_create.xml | 8 ++-- .../static/src/xml/website_slides_channel.xml | 1 - 7 files changed, 73 insertions(+), 31 deletions(-) create mode 100644 addons/website_sale_slides/views/website_sale_templates.xml diff --git a/addons/website_sale_slides/__manifest__.py b/addons/website_sale_slides/__manifest__.py index 6a3bf441513..4a0ab8ae952 100644 --- a/addons/website_sale_slides/__manifest__.py +++ b/addons/website_sale_slides/__manifest__.py @@ -13,6 +13,7 @@ 'report/sale_report_views.xml', 'views/website_slides_menu_views.xml', 'views/slide_channel_views.xml', + 'views/website_sale_templates.xml', 'views/website_slides_templates.xml', ], 'demo': [ diff --git a/addons/website_sale_slides/views/website_sale_templates.xml b/addons/website_sale_slides/views/website_sale_templates.xml new file mode 100644 index 00000000000..f255dedffbb --- /dev/null +++ b/addons/website_sale_slides/views/website_sale_templates.xml @@ -0,0 +1,37 @@ + + + + + + + + diff --git a/addons/website_sale_slides/views/website_slides_templates.xml b/addons/website_sale_slides/views/website_slides_templates.xml index 6086b5ca022..02dc3bd4216 100644 --- a/addons/website_sale_slides/views/website_slides_templates.xml +++ b/addons/website_sale_slides/views/website_slides_templates.xml @@ -86,7 +86,7 @@ -