From 33ce526aa2a09f15145db6aa754e8a553d6e9076 Mon Sep 17 00:00:00 2001 From: Fabien Pinckaers Date: Wed, 29 Jun 2016 21:14:00 -0700 Subject: [PATCH] [IMP] tours --- addons/crm/static/src/js/tour.js | 12 +++++++++++ addons/point_of_sale/static/src/js/tour.js | 21 +++++++++++++++++++ .../views/point_of_sale_template.xml | 1 + .../views/point_of_sale_view.xml | 1 + addons/project/static/src/js/tour.js | 2 +- addons/sale/static/src/js/tour.js | 12 +++++++++++ 6 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 addons/point_of_sale/static/src/js/tour.js diff --git a/addons/crm/static/src/js/tour.js b/addons/crm/static/src/js/tour.js index a6725656fd4..ac70945dd02 100644 --- a/addons/crm/static/src/js/tour.js +++ b/addons/crm/static/src/js/tour.js @@ -50,6 +50,18 @@ tour.register('crm_tour', { extra_trigger: '.o_opportunity_form', content: _t("Use the breadcrumbs to go back to your sales pipeline."), position: "bottom" +}, { + trigger: ".o_main_navbar .o_menu_toggle", + content: _t('Click the Home icon to navigate across apps.'), + position: "bottom" +}, { + trigger: ".o_apps .o_app:last", + content: _t("Configuration options are available in the Settings app."), + position: "bottom" +}, { + trigger: ".o_web_settings_dashboard textarea#user_emails", + content: _t("Invite collegues via email.
Enter one email per line."), + position: "right" }]); }); diff --git a/addons/point_of_sale/static/src/js/tour.js b/addons/point_of_sale/static/src/js/tour.js new file mode 100644 index 00000000000..6d565e5d101 --- /dev/null +++ b/addons/point_of_sale/static/src/js/tour.js @@ -0,0 +1,21 @@ +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('point_of_sale_tour', { + 'skip_enabled': true, +}, [{ + trigger: '.o_app[data-menu-xmlid="point_of_sale.menu_point_root"], .oe_menu_toggler[data-menu-xmlid="point_of_sale.menu_point_root"]', + content: _t("Ready to launch your point of sale? Click here."), + position: 'bottom', +}, { + trigger: ".o_pos_kanban button.oe_kanban_action_button", + content: _t("

Click to start the point of sale interface. It runs on tablets, laptops, or industrial hardware.

Once the session launched, the system continues to run without an internet connection.

"), + position: "bottom" +}]); + +}); diff --git a/addons/point_of_sale/views/point_of_sale_template.xml b/addons/point_of_sale/views/point_of_sale_template.xml index 979c8e98d4c..673c6e3e943 100644 --- a/addons/point_of_sale/views/point_of_sale_template.xml +++ b/addons/point_of_sale/views/point_of_sale_template.xml @@ -3,6 +3,7 @@ diff --git a/addons/point_of_sale/views/point_of_sale_view.xml b/addons/point_of_sale/views/point_of_sale_view.xml index b6093db7aee..e7b37fe1ff5 100644 --- a/addons/point_of_sale/views/point_of_sale_view.xml +++ b/addons/point_of_sale/views/point_of_sale_view.xml @@ -4,6 +4,7 @@ diff --git a/addons/project/static/src/js/tour.js b/addons/project/static/src/js/tour.js index c533fd93045..8dda36db86a 100644 --- a/addons/project/static/src/js/tour.js +++ b/addons/project/static/src/js/tour.js @@ -59,7 +59,7 @@ tour.register('project_tour', { content: _t("Configuration options are available in the Settings app."), position: "bottom" }, { - trigger: ".o_web_settings_dashboard .o_web_settings_dashboard_invitations", + trigger: ".o_web_settings_dashboard textarea#user_emails", content: _t("Invite collegues via email.
Enter one email per line."), position: "bottom" }]); diff --git a/addons/sale/static/src/js/tour.js b/addons/sale/static/src/js/tour.js index 40f44b2dd12..646be8c0615 100644 --- a/addons/sale/static/src/js/tour.js +++ b/addons/sale/static/src/js/tour.js @@ -31,6 +31,18 @@ tour.register('sale_tour', { trigger: 'li a[data-menu-xmlid="base.menu_sales"], .oe_secondary_menu_section[data-menu-xmlid="base.menu_sales"]', content: _t("Use this menu to access quotations, sales orders and customers."), position: "bottom" +}, { + trigger: ".o_main_navbar .o_menu_toggle", + content: _t('Click the Home icon to navigate across apps.'), + position: "bottom" +}, { + trigger: ".o_apps .o_app:last", + content: _t("Configuration options are available in the Settings app."), + position: "bottom" +}, { + trigger: ".o_web_settings_dashboard textarea#user_emails", + content: _t("Invite collegues via email.
Enter one email per line."), + position: "right" }]); });