[FIX] stock_landed_costs: qty and volume computation
bzr revid: qdp-launchpad@openerp.com-20140424131510-hx55angkbe6jh4um
This commit is contained in:
parent
5183909ade
commit
76a96723a2
|
@ -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
|
||||
|
|
|
@ -88,8 +88,8 @@
|
|||
<tree string="Valuation Adjustments" editable="bottom">
|
||||
<field name="cost_line_id" readonly="1"/>
|
||||
<field name="product_id" readonly="1"/>
|
||||
<field name="weight" readonly="1"/>
|
||||
<field name="volume" readonly="1"/>
|
||||
<field name="weight"/>
|
||||
<field name="volume"/>
|
||||
<field name="quantity" readonly="1"/>
|
||||
<field name="former_cost_per_unit" readonly="1"/>
|
||||
<field name="former_cost" readonly="1"/>
|
||||
|
|
Loading…
Reference in New Issue