[FIX] point_of_sale: scaled product weren't ordered with the correct weight

bzr revid: fva@openerp.com-20130917123446-671ijt70i93p0w67
This commit is contained in:
Frédéric van der Essen 2013-09-17 14:34:46 +02:00
parent 674054c97e
commit ad6bbe490a
1 changed files with 1 additions and 2 deletions

View File

@ -542,8 +542,7 @@ function openerp_pos_screens(instance, module){ //module is instance.point_of_sa
}
},
order_product: function(){
var weight = this.pos.proxy.weighting_read_kg();
this.pos.get('selectedOrder').addProduct(this.get_product(),{ quantity:weight });
this.pos.get('selectedOrder').addProduct(this.get_product(),{ quantity: this.weight });
},
get_product_name: function(){
var product = this.get_product();