Browse Source

[FIX] Added pos_fix_search_limit dependency. Added base 10 to parseInt function call.

pull/411/head
Wolfgang Pichler 5 years ago
parent
commit
f3646fd969
  1. 1
      pos_product_template/__manifest__.py
  2. 2
      pos_product_template/static/src/js/ppt.js

1
pos_product_template/__manifest__.py

@ -8,6 +8,7 @@
'license': 'AGPL-3', 'license': 'AGPL-3',
'depends': [ 'depends': [
'point_of_sale', 'point_of_sale',
'pos_fix_search_limit',
], ],
'data': [ 'data': [
'view/view.xml', 'view/view.xml',

2
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(){ filter_variant: function(){
var value_list = []; var value_list = [];
for (var item in this.filters){ 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 = []; this.filter_variant_list = [];
for (var index in this.variant_list){ for (var index in this.variant_list){

Loading…
Cancel
Save