From 203499216c657631b39b6ddc9560a1daaf20a862 Mon Sep 17 00:00:00 2001 From: Munaf Khan <mub@odoo.com> Date: Tue, 16 Mar 2021 06:35:19 +0000 Subject: [PATCH] [IMP] {website_}event: improve tour usability This commit makes few changes in the event tour as listed below: * Remove the step asking user to save the event, as the next step is redirecting to the website which already triggers a save * Make the tip for website redirection appeaer in edit mode also * Fix a typo ("registering" instead of "registrating") * Instead of having to go to a specific stage, moving to any stage is now enough for going to next step taskID-2446215 closes odoo/odoo#68235 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com> --- addons/event/static/src/js/tours/event_tour.js | 10 ++-------- addons/website_event/i18n/website_event.pot | 2 +- addons/website_event/static/src/js/tours/event_tour.js | 3 +-- 3 files changed, 4 insertions(+), 11 deletions(-) diff --git a/addons/event/static/src/js/tours/event_tour.js b/addons/event/static/src/js/tours/event_tour.js index 192d243d924a..c1f3c8347bd8 100644 --- a/addons/event/static/src/js/tours/event_tour.js +++ b/addons/event/static/src/js/tours/event_tour.js @@ -57,20 +57,14 @@ tour.register('event_tour', { }, { trigger: '.o_event_form_view div[name="event_ticket_ids"] .o_field_x2many_list_row_add a', content: _t("Ticket types allow you to distinguish your attendees. Let's <b>create</b> a new one."), -}, { - trigger: '.o_form_button_save', - extra_trigger: '.o_event_form_view', - content: _t("Awesome! Now, let's <b>save</b> your changes."), - position: 'bottom', - width: 250, }, ...new EventAdditionalTourSteps()._get_website_event_steps(), { - trigger: '.o_event_form_view div[name="stage_id"] button:contains("Booked")', + trigger: '.o_event_form_view div[name="stage_id"]', extra_trigger: 'div.o_form_buttons_view:not(.o_hidden)', content: _t("Now that your event is ready, click here to move it to another stage."), position: 'bottom', }, { trigger: 'ol.breadcrumb li.breadcrumb-item:first', - extra_trigger: '.o_event_form_view div[name="stage_id"] button.disabled:contains("Booked")', + extra_trigger: '.o_event_form_view div[name="stage_id"]', content: _t("Use the <b>breadcrumbs</b> to go back to your kanban overview."), position: 'bottom', run: 'click', diff --git a/addons/website_event/i18n/website_event.pot b/addons/website_event/i18n/website_event.pot index a0bff9b230ee..8018da92744d 100644 --- a/addons/website_event/i18n/website_event.pot +++ b/addons/website_event/i18n/website_event.pot @@ -1086,7 +1086,7 @@ msgstr "" #, python-format msgid "" "With the Edit button, you can <b>customize</b> the web page visitors will " -"see when registrating." +"see when registering." msgstr "" #. module: website_event diff --git a/addons/website_event/static/src/js/tours/event_tour.js b/addons/website_event/static/src/js/tours/event_tour.js index 49db16806ed7..421146c1a093 100644 --- a/addons/website_event/static/src/js/tours/event_tour.js +++ b/addons/website_event/static/src/js/tours/event_tour.js @@ -16,13 +16,12 @@ EventAdditionalTourSteps.include({ this._super.apply(this, arguments); return [{ trigger: '.o_event_form_view button[name="is_published"]', - extra_trigger: 'div.o_form_buttons_view:not(.o_hidden)', content: _t("Use this <b>shortcut</b> to easily access your event web page."), position: 'bottom', }, { trigger: 'li#edit-page-menu a', extra_trigger: '.o_wevent_event', - content: _t("With the Edit button, you can <b>customize</b> the web page visitors will see when registrating."), + content: _t("With the Edit button, you can <b>customize</b> the web page visitors will see when registering."), position: 'bottom', }, { trigger: 'div[name="Image - Text"] .oe_snippet_thumbnail', -- GitLab