From fe3fe6140807dc7ac482c4be2d3985d1fb1060d7 Mon Sep 17 00:00:00 2001 From: Maxime Richez Date: Thu, 29 Sep 2022 09:08:06 +0200 Subject: [PATCH] Remove default currency on stock move issue11512 review433171003 --- 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(+) diff --git a/tests/scenario_account_stock_continental.rst b/tests/scenario_account_stock_continental.rst index 3528845561..921edfc170 100644 --- a/tests/scenario_account_stock_continental.rst +++ b/tests/scenario_account_stock_continental.rst @@ -114,6 +114,7 @@ Transfer 1 product between warehouses:: >>> move.product = product >>> move.quantity = 1 >>> move.unit_price = product.cost_price + >>> move.currency = company.currency >>> shipment.click('wait') >>> shipment.click('assign_force') diff --git a/tests/scenario_product_cost_fifo_warehouse.rst b/tests/scenario_product_cost_fifo_warehouse.rst index 443e04b34f..10b16fa072 100644 --- a/tests/scenario_product_cost_fifo_warehouse.rst +++ b/tests/scenario_product_cost_fifo_warehouse.rst @@ -90,6 +90,7 @@ Make 2 unit of product available @ 80 in both warehouses:: ... 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 --git a/tests/scenario_product_cost_warehouse.rst b/tests/scenario_product_cost_warehouse.rst index 4a16c0d792..94bacea4c2 100644 --- a/tests/scenario_product_cost_warehouse.rst +++ b/tests/scenario_product_cost_warehouse.rst @@ -93,6 +93,7 @@ Make 1 unit of product available @ 80 in both warehouses:: ... 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 @@ Forbid direct move between warehouses:: >>> 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 @@ Transfer 1 product between warehouses:: >>> move.product = product >>> move.quantity = 1 >>> move.unit_price = product.cost_price + >>> move.currency = company.currency >>> shipment.click('wait') >>> shipment.state 'waiting'