Write shipment cost on moves at once
issue4728 review7121002
This commit is contained in:
1 parent
90119f193e
commit
4d1bf67dd3
1 file changed
+3
-4
@@ -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
|
||||
|
||||
Reference in new issue
Block a user