[FIX] point_of_sale: scaled product weren't ordered with the correct weight
authorFrédéric van der Essen <fva@openerp.com>
Tue, 17 Sep 2013 12:34:46 +0000 (14:34 +0200)
committerFrédéric van der Essen <fva@openerp.com>
Tue, 17 Sep 2013 12:34:46 +0000 (14:34 +0200)
bzr revid: fva@openerp.com-20130917123446-671ijt70i93p0w67

addons/point_of_sale/static/src/js/screens.js

index 9f1b22f..0c3e488 100644 (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();