diff --git a/addons/sale_stock/static/src/js/tour.js b/addons/sale_stock/static/src/js/tour.js index cb10a00c5ef..690150677de 100644 --- a/addons/sale_stock/static/src/js/tour.js +++ b/addons/sale_stock/static/src/js/tour.js @@ -20,7 +20,9 @@ odoo.define("sale_stock.tour", function (require) { auto: true, in_modal: false, run: function (actions) { - actions.auto(".modal-footer .btn-primary"); + if ($('.modal-footer .btn-primary').length){ + actions.auto(".modal-footer .btn-primary"); + } }, }); });