From f7dfcd5d9816a2841c3ab3bb71feb3ab71520ae1 Mon Sep 17 00:00:00 2001 From: Martin Trigaux Date: Tue, 22 Jul 2014 16:38:52 +0200 Subject: [PATCH] [FIX] delivery: use unit of measure and not unit of stock to compute price of delivery The computation expects uom and it was wrongly passing uos qunatities. --- addons/delivery/delivery.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/delivery/delivery.py b/addons/delivery/delivery.py index c6deb3147a3..62d513c8bff 100644 --- a/addons/delivery/delivery.py +++ b/addons/delivery/delivery.py @@ -196,7 +196,7 @@ class delivery_grid(osv.osv): for line in order.order_line: if not line.product_id: continue - q = product_uom_obj._compute_qty(cr, uid, line.product_uom.id, line.product_uos_qty, line.product_id.uom_id.id) + q = product_uom_obj._compute_qty(cr, uid, line.product_uom.id, line.product_uom_qty, line.product_id.uom_id.id) total += line.price_subtotal or 0.0 weight += (line.product_id.weight or 0.0) * q volume += (line.product_id.volume or 0.0) * q