[FIX] point_of_sale: remove a confusing partial implementation of UoS
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user