From 513dca4726ef7a8117128d8921b46f2269fe22e8 Mon Sep 17 00:00:00 2001 From: Christophe Matthieu Date: Thu, 9 Mar 2017 12:45:29 +0100 Subject: [PATCH] [FIX] sale: test depend of another module It may crash when we install only the sale module --- addons/sale/static/src/js/tour.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/addons/sale/static/src/js/tour.js b/addons/sale/static/src/js/tour.js index 997f5469264..74ea6820884 100644 --- a/addons/sale/static/src/js/tour.js +++ b/addons/sale/static/src/js/tour.js @@ -50,7 +50,9 @@ tour.register('sale_tour', { in_modal: false, run: function (actions) { actions.auto(); - actions.auto(".modal-footer .btn-primary"); + if ($(".modal-footer .btn-primary").length) { + actions.auto(".modal-footer .btn-primary"); + } }, id: "quotation_product_selected", }, {