[FIX] point_of_sale: wrong ean field for packagings

bzr revid: fva@openerp.com-20130521090942-hvtze13ek6p7nguo
This commit is contained in:
Frédéric van der Essen 2013-05-21 11:09:42 +02:00
parent 727de3660d
commit 6d03a9be51
1 changed files with 2 additions and 2 deletions

View File

@ -204,8 +204,8 @@ function openerp_pos_db(instance, module){
this.packagings_by_product_id[pack.product_id[0]] = [];
}
this.packagings_by_product_id[pack.product_id[0]].push(pack);
if(pack.ean13){
this.packagings_by_ean13[pack.ean13] = pack;
if(pack.ean){
this.packagings_by_ean13[pack.ean] = pack;
}
}
},