Write shipment cost on moves at once

issue4728
review7121002
This commit is contained in:
Cédric Krier committed 2015-05-08 14:58:36 +02:00
1 parent 90119f193e
commit 4d1bf67dd3
1 file changed
+3 -4
+3 -4
View File
@@ -119,10 +119,9 @@ class ShipmentIn:
move.currency, round=False)
unit_shipment_cost = unit_shipment_cost.quantize(
exp, rounding=ROUND_HALF_EVEN)
Move.write([move], {
'unit_price': move.unit_price + unit_shipment_cost,
'unit_shipment_cost': unit_shipment_cost,
})
move.unit_price += unit_shipment_cost
move.unit_shipment_cost = unit_shipment_cost
Move.save(moves)
@classmethod
@ModelView.button