changeset 66ea503f08a5 in modules/account_stock_landed_cost:default
details:
https://hg.tryton.org/modules/account_stock_landed_cost?cmd=changeset&node=66ea503f08a5
description:
Add back the shipment cost when recompute move unit price
When the unit price of a move is updated, the shipment cost that was
added must
be added back.
issue10196
review348201004
diffstat:
stock.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (14 lines):
diff -r 36f68cc48179 -r 66ea503f08a5 stock.py
--- a/stock.py Sat Apr 10 23:46:23 2021 +0200
+++ b/stock.py Wed Apr 28 00:35:04 2021 +0200
@@ -10,8 +10,8 @@
unit_landed_cost = fields.Numeric('Unit Landed Cost',
digits=price_digits, readonly=True)
- def _compute_unit_price(self):
- unit_price = super()._compute_unit_price()
+ def _compute_unit_price(self, unit_price):
+ unit_price = super()._compute_unit_price(unit_price)
if self.unit_landed_cost:
unit_price += self.unit_landed_cost
return unit_price