summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMunaf Khan <mub@odoo.com>2021-03-16 06:35:19 +0000
committerMunaf Khan <mub@odoo.com>2021-05-11 09:47:37 +0000
commit203499216c657631b39b6ddc9560a1daaf20a862 (patch)
tree57e9944bc981378aac68f96ac887b721013abbd5
parent96564dd64bdbd426ae87444fd75a822074a37fc0 (diff)
[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>
-rw-r--r--addons/event/static/src/js/tours/event_tour.js10
-rw-r--r--addons/website_event/i18n/website_event.pot2
-rw-r--r--addons/website_event/static/src/js/tours/event_tour.js3
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 192d243d924..c1f3c8347bd 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 a0bff9b230e..8018da92744 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 49db16806ed..421146c1a09 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',