[FIX] point_of_sale: remove a confusing partial implementation of UoS

This commit is contained in:
Frederic van der Essen
2014-11-18 15:38:18 +01:00
parent 3288f07eaa
commit 60faccdcc3
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -735,7 +735,7 @@ function openerp_pos_models(instance, module){ //module is instance.point_of_sal
},
// return the unit of measure of the product
get_unit: function(){
var unit_id = (this.product.uos_id || this.product.uom_id);
var unit_id = this.product.uom_id;
if(!unit_id){
return undefined;
}
@@ -475,7 +475,7 @@ function openerp_pos_screens(instance, module){ //module is instance.point_of_sa
if(!product || !this.pos){
return defaultstr;
}
var unit_id = product.uos_id || product.uom_id;
var unit_id = product.uom_id;
if(!unit_id){
return defaultstr;
}