From 84a1d7bd59ebfc283745a0b1b65b0872ffc21182 Mon Sep 17 00:00:00 2001 From: Aaron Bohy Date: Thu, 6 Dec 2018 12:38:30 +0000 Subject: [PATCH] [FIX] point_of_sale: adapt webclient template according to changes in web. Some changes have been made to the webclient template (and widget) in web, and the pos (using the webclient widget as well) needed to be adapted. Part of task 1893568 --- addons/point_of_sale/static/src/js/tests.js | 4 ++-- addons/point_of_sale/views/pos_templates.xml | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/addons/point_of_sale/static/src/js/tests.js b/addons/point_of_sale/static/src/js/tests.js index 78dfa8cdca2..59cddd0f352 100644 --- a/addons/point_of_sale/static/src/js/tests.js +++ b/addons/point_of_sale/static/src/js/tests.js @@ -50,7 +50,7 @@ odoo.define('point_of_sale.tour.pricelist', function (require) { run: 'click', }, { content: 'waiting for loading to finish', - trigger: '.o_main_content:has(.loader:hidden)', + trigger: 'body:has(.loader:hidden)', run: function () { var product_wall_shelf = posmodel.db.search_product_in_category(0, 'Wall Shelf Unit')[0]; var product_small_shelf = posmodel.db.search_product_in_category(0, 'Small Shelf')[0]; @@ -312,7 +312,7 @@ odoo.define('point_of_sale.tour.acceptance', function (require) { var steps = [{ content: 'waiting for loading to finish', - trigger: '.o_main_content:has(.loader:hidden)', + trigger: 'body:has(.loader:hidden)', run: function () {}, // it's a check }, { // Leave category displayed by default content: "click category switch", diff --git a/addons/point_of_sale/views/pos_templates.xml b/addons/point_of_sale/views/pos_templates.xml index 7327aa936c6..88a108bc12c 100644 --- a/addons/point_of_sale/views/pos_templates.xml +++ b/addons/point_of_sale/views/pos_templates.xml @@ -55,7 +55,6 @@ -