[FIX] point_of_sale: potentially improve performance when loading lots of categories

bzr revid: fred@pc-fred.localhost-20130312150638-s980pt6pezi16x2j
This commit is contained in:
Frederic van der Essen 2013-03-12 16:06:38 +01:00
parent 74a1ea6617
commit 95f3847244
1 changed files with 1 additions and 1 deletions

View File

@ -178,7 +178,7 @@ function openerp_pos_db(instance, module){
var ancestors = this.get_category_ancestors_ids(categ_id) || [];
for(var j = 0; j < ancestors.length; j++){
for(var j = 0, jlen = ancestors.length; j < jlen; j++){
var ancestor = ancestors[j];
if(! stored_categories[ancestor]){
stored_categories[ancestor] = [];