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 @@ - - + +