[FIX] point_of_sale: the product name field changed to display_name to include variants information, this should be reflected in searches as well.

This commit is contained in:
Frederic van der Essen 2014-08-18 11:35:24 +02:00
parent 25e11113b5
commit 5d1d77e6e2
2 changed files with 2 additions and 2 deletions

View File

@ -128,7 +128,7 @@ function openerp_pos_db(instance, module){
this.cache[store] = data;
},
_product_search_string: function(product){
var str = '' + product.id + ':' + product.name;
var str = '' + product.id + ':' + product.display_name;
if(product.ean13){
str += '|' + product.ean13;
}

View File

@ -492,7 +492,7 @@ function openerp_pos_screens(instance, module){ //module is instance.point_of_sa
},
get_product_name: function(){
var product = this.get_product();
return (product ? product.name : undefined) || 'Unnamed Product';
return (product ? product.display_name : undefined) || 'Unnamed Product';
},
get_product_price: function(){
var product = this.get_product();