[IMP] tours

This commit is contained in:
Fabien Pinckaers
2016-06-29 21:14:00 -07:00
parent 4882a521f1
commit 33ce526aa2
6 changed files with 48 additions and 1 deletions
+12
View File
@@ -50,6 +50,18 @@ tour.register('crm_tour', {
extra_trigger: '.o_opportunity_form',
content: _t("Use the breadcrumbs to <b>go back to your sales pipeline</b>."),
position: "bottom"
}, {
trigger: ".o_main_navbar .o_menu_toggle",
content: _t('Click the <i>Home icon</i> 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("<b>Invite collegues</b> via email.<br/><i>Enter one email per line.</i>"),
position: "right"
}]);
});
@@ -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 <b>point of sale</b>? <i>Click here</i>."),
position: 'bottom',
}, {
trigger: ".o_pos_kanban button.oe_kanban_action_button",
content: _t("<p>Click to start the point of sale interface. It <b>runs on tablets</b>, laptops, or industrial hardware.</p><p>Once the session launched, the system continues to run without an internet connection.</p>"),
position: "bottom"
}]);
});
@@ -3,6 +3,7 @@
<template id="assets_backend" name="hr assets" inherit_id="web.assets_backend">
<xpath expr="." position="inside">
<link rel="stylesheet" href="/point_of_sale/static/src/less/pos_dashboard.less"/>
<script type="text/javascript" src="/point_of_sale/static/src/js/tour.js"></script>
</xpath>
</template>
</odoo>
@@ -4,6 +4,7 @@
<menuitem
id="menu_point_root"
name="Point of Sale"
load_xmlid="True"
groups="group_pos_manager,group_pos_user"
web_icon="point_of_sale,static/description/icon.png"
sequence="20"/>
+1 -1
View File
@@ -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("<b>Invite collegues</b> via email.<br/><i>Enter one email per line.</i>"),
position: "bottom"
}]);
+12
View File
@@ -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 <i>Home icon</i> 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("<b>Invite collegues</b> via email.<br/><i>Enter one email per line.</i>"),
position: "right"
}]);
});