From f3646fd96972743f4189ff3e1cfd92416dd43054 Mon Sep 17 00:00:00 2001 From: Wolfgang Pichler Date: Tue, 19 Nov 2019 16:13:03 +0100 Subject: [PATCH] [FIX] Added pos_fix_search_limit dependency. Added base 10 to parseInt function call. --- pos_product_template/__manifest__.py | 1 + pos_product_template/static/src/js/ppt.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pos_product_template/__manifest__.py b/pos_product_template/__manifest__.py index c950ff63..a61dacd1 100644 --- a/pos_product_template/__manifest__.py +++ b/pos_product_template/__manifest__.py @@ -8,6 +8,7 @@ 'license': 'AGPL-3', 'depends': [ 'point_of_sale', + 'pos_fix_search_limit', ], 'data': [ 'view/view.xml', diff --git a/pos_product_template/static/src/js/ppt.js b/pos_product_template/static/src/js/ppt.js index 6a4ce8ef..f97ecd4c 100644 --- a/pos_product_template/static/src/js/ppt.js +++ b/pos_product_template/static/src/js/ppt.js @@ -212,7 +212,7 @@ odoo.define("pos_product_template.pos_product_template", function(require){ filter_variant: function(){ var value_list = []; for (var item in this.filters){ - value_list.push(parseInt(this.filters[item])); + value_list.push(parseInt(this.filters[item], 10)); } this.filter_variant_list = []; for (var index in this.variant_list){