Permalink
Browse files

[IMP]sale: improvements in sale tour.

- change tooltip when opening 'sale' app
- set tour focus on 'ordered quantity'
- added a congrat message at the end of the tour, after clicking on "Orders" menu item

  Task: 1920454
  • Loading branch information...
pka-odoo authored and mba-odoo committed Jan 3, 2019
1 parent 88e3d54 commit 9dbb830d821881c88a5c8102caaabf500c9cb4e7
Showing with 18 additions and 2 deletions.
  1. +18 −2 addons/sale/static/src/js/tour.js
@@ -10,12 +10,12 @@ tour.register('sale_tour', {
url: "/web",
}, [tour.STEPS.SHOW_APPS_MENU_ITEM, {
trigger: '.o_app[data-menu-xmlid="sale.sale_menu_root"]',
content: _t('Organize your sales activities with the <b>Sales Management app</b>.'),
content: _t('Open Sales app to send your first quotation in a few clicks.'),
position: 'right',
edition: 'community'
}, {
trigger: '.o_app[data-menu-xmlid="sale.sale_menu_root"]',
content: _t('Organize your sales activities with the <b>Sales Management app</b>.'),
content: _t('Open Sales app to send your first quotation in a few clicks.'),
position: 'bottom',
edition: 'enterprise'
}, {
@@ -48,6 +48,13 @@ tour.register('sale_tour', {
run: function (actions) {
actions.text("Chair", 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,
@@ -79,6 +86,15 @@ tour.register('sale_tour', {
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 9dbb830

Please sign in to comment.