Permalink
Browse files

[IMP]sale: removed focus and added rainbowman to tour

  • Loading branch information...
pka-odoo committed Jan 11, 2019
1 parent 5e88c41 commit 1faeea319f5de8c5ccf9e76de76ccdfbba25bef9
Showing with 1 addition and 17 deletions.
  1. +1 −17 addons/sale/static/src/js/tour.js
@@ -8,6 +8,7 @@ var _t = core._t;

tour.register('sale_tour', {
url: "/web",
rainbowMan: true,
}, [tour.STEPS.SHOW_APPS_MENU_ITEM, {
trigger: '.o_app[data-menu-xmlid="sale.sale_menu_root"]',
content: _t('Open Sales app to send your first quotation in a few clicks.'),
@@ -48,13 +49,6 @@ tour.register('sale_tour', {
run: function (actions) {
actions.text("DESK0001", this.$anchor.find("input"));
},
}, {
trigger: '.o_field_widget[name="product_uom_qty"]',
content: _t("Focus on ordered quantity field."),
position: "right",
run: function(actions) {
actions.click();
}
}, {
trigger: ".ui-menu-item > a",
auto: true,
@@ -85,16 +79,6 @@ tour.register('sale_tour', {
trigger: 'li a[data-menu-xmlid="sale.sale_order_menu"], .oe_secondary_menu_section[data-menu-xmlid="sale.sale_order_menu"]',
content: _t("Use this menu to access quotations, sales orders and customers."),
edition: "enterprise",
position: "bottom"
}, {
trigger: 'li a[data-menu-xmlid="sale.sale_order_menu"], .oe_secondary_menu_section[data-menu-xmlid="sale.sale_order_menu"]',
content: _t("Show Congratulations message"),
run: function(actions) {
this.trigger_up('show_effect', {
message: _t("Congratulations ! You successfully completed the discovery tour."),
type: 'rainbow_man',
});
}
}]);

});

0 comments on commit 1faeea3

Please sign in to comment.