Permalink
Browse files

[IMP]sale: tour adding product with keyboard should mark step done

  • Loading branch information...
pka-odoo committed Jan 11, 2019
1 parent 1faeea3 commit 9d6e8ae2d8c2eb27969c657bbf339856f17ba87b
Showing with 4 additions and 8 deletions.
  1. +4 −8 addons/sale/static/src/js/tour.js
@@ -25,13 +25,11 @@ tour.register('sale_tour', {
content: _t("Let's create a new quotation.<br/><i>Note that colored buttons usually point to the next logical actions.</i>"),
position: "bottom",
}, {
trigger: ".o_form_editable .o_field_many2one[name='partner_id']",
trigger: ".o_form_editable .o_field_many2one[name='partner_id'] input",
extra_trigger: ".o_sale_order",
content: _t("Write the name of your customer to create one on the fly, or select an existing one."),
position: "bottom",
run: function (actions) {
actions.text("Agrolait", this.$anchor.find("input"));
},
run: 'text Agrolait'
}, {
trigger: ".ui-menu-item > a",
auto: true,
@@ -42,13 +40,11 @@ tour.register('sale_tour', {
content: _t("Click here to add some products or services to your quotation."),
position: "bottom",
}, {
trigger: ".o_form_editable .o_field_many2one[name='product_id']",
trigger: ".o_form_editable .o_field_many2one[name='product_id'] input",
extra_trigger: ".o_sale_order",
content: _t("Select a product, or create a new one on the fly."),
position: "right",
run: function (actions) {
actions.text("DESK0001", this.$anchor.find("input"));
},
run: 'text DESK0001'
}, {
trigger: ".ui-menu-item > a",
auto: true,

0 comments on commit 9d6e8ae

Please sign in to comment.