odoo.define('crm.tour', function(require) { "use strict"; var core = require('web.core'); var tour = require('web_tour.tour'); var _t = core._t; tour.register('crm_tour', { url: "/web", }, [tour.STEPS.SHOW_APPS_MENU_ITEM, { trigger: '.o_app[data-menu-xmlid="crm.crm_menu_root"]', content: _t("Ready to boost your sales? Your Pipeline can be found here, under the CRM app."), position: 'right', edition: 'community' }, { trigger: '.o_app[data-menu-xmlid="crm.crm_menu_root"]', content: _t("Ready to boost your sales? Your Pipeline can be found here, under the CRM app."), position: 'bottom', edition: 'enterprise', }, { trigger: ".o-kanban-button-new", extra_trigger: '.o_opportunity_kanban', content: _t("Click here to create your first opportunity and add it to your pipeline."), position: "bottom", }, { trigger: ".o_kanban_quick_create input:first", content: _t("Choose a name for your opportunity, example: 'Need a new website'"), position: "right", }, { trigger: ".o_kanban_quick_create .o_kanban_add", content: _t("Click here to add your opportunity."), position: "bottom", }, { trigger: ".o_opportunity_kanban .o_kanban_group:first-child .o_kanban_record:last-child", content: _t("Drag & drop opportunities between columns as you progress in your sales cycle."), position: "right", run: "drag_and_drop .o_opportunity_kanban .o_kanban_group:eq(2) ", }, { trigger: ".o_kanban_record:not(.o_updating) .o_activity_color_default", extra_trigger: ".o_opportunity_kanban", content: _t("This opportunity has no activity planned."), position: "bottom" }, { trigger: ".o_schedule_activity", extra_trigger: ".o_opportunity_kanban", content: _t("Let's schedule an activity."), position: "bottom" }, { trigger: '.modal-body .o_field_many2one', extra_trigger: ".o_opportunity_kanban", content: _t("Choose an activity type.
You can customize them in the general settings."), position: "bottom", run: function (actions) { actions.auto('.modal-footer button[special=cancel]'); }, }, { trigger: ".o_kanban_record", extra_trigger: ".o_opportunity_kanban", content: _t("Click on the opportunity to zoom in."), position: "bottom", run: function (actions) { actions.auto(".o_kanban_record .oe_kanban_action[data-type=edit]"); }, }, { trigger: ".o_opportunity_form .o_chatter_button_new_message", content: _t('

Send messages to your prospect and get replies automatically attached to this opportunity.

Type \'@\' to mention people - it\'s like cc-ing on emails.

'), position: "bottom" }, { trigger: ".breadcrumb-item:not(.active):last", extra_trigger: '.o_opportunity_form', content: _t("Use the breadcrumbs to go back to your sales pipeline."), position: "bottom" }, tour.STEPS.TOGGLE_HOME_MENU, tour.STEPS.SHOW_APPS_MENU_ITEM, { trigger: '.o_app[data-menu-xmlid="base.menu_administration"]', content: _t("Configuration options are available in the Settings app."), position: "bottom", edition: 'community' }, { trigger: '.o_app[data-menu-xmlid="base.menu_administration"]', content: _t("Configuration options are available in the Settings app."), position: "bottom", edition: 'enterprise' }, { trigger: ".o_web_settings_dashboard .o_user_emails", content: _t("Invite coworkers via email.
Enter one email per line."), position: "right" }, tour.STEPS.TOGGLE_HOME_MENU, tour.STEPS.SHOW_APPS_MENU_ITEM, { trigger: '.o_app[data-menu-xmlid="crm.crm_menu_root"]', content: _t("Good job! You completed the tour of the CRM app."), position: 'right', edition: 'community' }, { trigger: '.o_app[data-menu-xmlid="crm.crm_menu_root"]', content: _t("Good job! You completed the tour of the CRM app."), position: 'bottom', edition: 'enterprise' }]); });