[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:
parent
74a1ea6617
commit
95f3847244
|
@ -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] = [];
|
||||
|
|
Loading…
Reference in New Issue