changeset 93b4cdf09c65 in modules/product_cost_warehouse:default details: https://hg.tryton.org/modules/product_cost_warehouse?cmd=changeset&node=93b4cdf09c65 description: Remove default currency on stock move
issue11512 review433171003 diffstat: tests/scenario_account_stock_continental.rst | 1 + tests/scenario_product_cost_fifo_warehouse.rst | 1 + tests/scenario_product_cost_warehouse.rst | 3 +++ 3 files changed, 5 insertions(+), 0 deletions(-) diffs (49 lines): diff -r fde807953ae4 -r 93b4cdf09c65 tests/scenario_account_stock_continental.rst --- a/tests/scenario_account_stock_continental.rst Fri Aug 26 17:49:54 2022 +0200 +++ b/tests/scenario_account_stock_continental.rst Thu Sep 29 09:08:06 2022 +0200 @@ -114,6 +114,7 @@ >>> move.product = product >>> move.quantity = 1 >>> move.unit_price = product.cost_price + >>> move.currency = company.currency >>> shipment.click('wait') >>> shipment.click('assign_force') diff -r fde807953ae4 -r 93b4cdf09c65 tests/scenario_product_cost_fifo_warehouse.rst --- a/tests/scenario_product_cost_fifo_warehouse.rst Fri Aug 26 17:49:54 2022 +0200 +++ b/tests/scenario_product_cost_fifo_warehouse.rst Thu Sep 29 09:08:06 2022 +0200 @@ -90,6 +90,7 @@ ... move.from_location = supplier_loc ... move.to_location = warehouse.storage_location ... move.unit_price = Decimal('80') + ... move.currency = company.currency ... moves.append(move) >>> StockMove.click(moves, 'do') diff -r fde807953ae4 -r 93b4cdf09c65 tests/scenario_product_cost_warehouse.rst --- a/tests/scenario_product_cost_warehouse.rst Fri Aug 26 17:49:54 2022 +0200 +++ b/tests/scenario_product_cost_warehouse.rst Thu Sep 29 09:08:06 2022 +0200 @@ -93,6 +93,7 @@ ... move.from_location = supplier_loc ... move.to_location = warehouse.storage_location ... move.unit_price = Decimal('80') + ... move.currency = company.currency ... moves.append(move) >>> StockMove.click(moves, 'do') @@ -140,6 +141,7 @@ >>> move.from_location = warehouse1.storage_location >>> move.to_location = warehouse2.storage_location >>> move.unit_price = product.cost_price + >>> move.currency = company.currency >>> move.save() >>> move.click('do') # doctest: +IGNORE_EXCEPTION_DETAIL Traceback (most recent call last): @@ -163,6 +165,7 @@ >>> move.product = product >>> move.quantity = 1 >>> move.unit_price = product.cost_price + >>> move.currency = company.currency >>> shipment.click('wait') >>> shipment.state 'waiting'