changeset c84c16a0fcd6 in modules/account_stock_landed_cost:default
details:
https://hg.tryton.org/modules/account_stock_landed_cost?cmd=changeset&node=c84c16a0fcd6
description:
Remove default currency on stock move
issue11512
review433171003
diffstat:
tests/scenario_account_stock_landed_cost.rst | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diffs (27 lines):
diff -r cdd6e1ec7141 -r c84c16a0fcd6
tests/scenario_account_stock_landed_cost.rst
--- a/tests/scenario_account_stock_landed_cost.rst Wed Sep 14 19:27:28
2022 +0200
+++ b/tests/scenario_account_stock_landed_cost.rst Thu Sep 29 09:08:06
2022 +0200
@@ -119,6 +119,7 @@
>>> 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
@@ -126,6 +127,7 @@
>>> move.from_location = supplier_loc
>>> move.to_location = input_loc
>>> move.unit_price = Decimal('10')
+ >>> move.currency = company.currency
>>> move_empty = shipment.incoming_moves.new()
>>> move_empty.product = product
@@ -133,6 +135,7 @@
>>> move_empty.from_location = supplier_loc
>>> move_empty.to_location = input_loc
>>> move_empty.unit_price = Decimal('100')
+ >>> move_empty.currency = company.currency
>>> shipment.click('receive')
>>> sorted([m.unit_price for m in shipment.incoming_moves if m.quantity])