changeset 96fe5d137331 in modules/account_stock_landed_cost_weight:default
details:
https://hg.tryton.org/modules/account_stock_landed_cost_weight?cmd=changeset&node=96fe5d137331
description:
Remove default currency on stock move
issue11512
review433171003
diffstat:
tests/scenario_account_stock_landed_cost_weight.rst | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diffs (18 lines):
diff -r c80554e87db3 -r 96fe5d137331
tests/scenario_account_stock_landed_cost_weight.rst
--- a/tests/scenario_account_stock_landed_cost_weight.rst Mon Jul 18
00:16:26 2022 +0200
+++ b/tests/scenario_account_stock_landed_cost_weight.rst Thu Sep 29
09:08:06 2022 +0200
@@ -131,12 +131,14 @@
>>> move.from_location = supplier_loc
>>> move.to_location = input_loc
>>> move.unit_price = Decimal('100')
+ >>> move.currency = company.currency
>>> move = shipment.incoming_moves.new()
>>> move.product = product2
>>> move.quantity = 10
>>> move.from_location = supplier_loc
>>> move.to_location = input_loc
>>> move.unit_price = Decimal('50')
+ >>> move.currency = company.currency
>>> shipment.click('receive')
>>> sorted([m.unit_price for m in shipment.incoming_moves])
[Decimal('50'), Decimal('100')]