[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:
parent
25e11113b5
commit
5d1d77e6e2
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue