From 76a96723a2545da5b823d8c77339e059f4e251dc Mon Sep 17 00:00:00 2001 From: "Quentin (OpenERP)" Date: Thu, 24 Apr 2014 15:15:10 +0200 Subject: [PATCH] [FIX] stock_landed_costs: qty and volume computation bzr revid: qdp-launchpad@openerp.com-20140424131510-hx55angkbe6jh4um --- addons/stock_landed_costs/stock_landed_costs.py | 4 ++-- addons/stock_landed_costs/stock_landed_costs_view.xml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/addons/stock_landed_costs/stock_landed_costs.py b/addons/stock_landed_costs/stock_landed_costs.py index f0c7d5d1102..6dfb26de4b6 100644 --- a/addons/stock_landed_costs/stock_landed_costs.py +++ b/addons/stock_landed_costs/stock_landed_costs.py @@ -71,8 +71,8 @@ class stock_landed_cost(osv.osv): continue total_cost = 0.0 total_qty = 0.0 - weight = move.product_id and move.product_id.weight - volume = move.product_id and move.product_id.volume + weight = move.product_id and move.product_id.weight * move.product_qty + volume = move.product_id and move.product_id.volume * move.product_qty for quant in move.quant_ids: total_cost += quant.cost total_qty += quant.qty diff --git a/addons/stock_landed_costs/stock_landed_costs_view.xml b/addons/stock_landed_costs/stock_landed_costs_view.xml index 77cb030dd7c..ac85159d016 100644 --- a/addons/stock_landed_costs/stock_landed_costs_view.xml +++ b/addons/stock_landed_costs/stock_landed_costs_view.xml @@ -88,8 +88,8 @@ - - + +